Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalar.Service: unregister repo when it's not on disk #206

Merged
merged 1 commit into from
Oct 31, 2019

Commits on Oct 31, 2019

  1. 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.
    wilbaker committed Oct 31, 2019
    Configuration menu
    Copy the full SHA
    920a1b0 View commit details
    Browse the repository at this point in the history