-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scalar.Service: unregister repo when it's not on disk
Update the RepoRegistry to check if the enlistment root exists on disk before attempting to run the maintenance verb against it. If the enlistment root does not exist on disk, but it's root directory *does* exist, then also remove the repo from the registry. Checking that the root of the enlistment path exists before removing the repo from the registry ensures that we will not remove repos that are temporarily unavailable (e.g. due to Bitlocker or a removable drive not being present). See the discussion in microsoft/VFSForGit#359 for details.
- Loading branch information
Showing
2 changed files
with
70 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters