-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cache tracking resilient to unexpected files
This makes the cache tracking synchronization code resilient to unexpected files in the cache directory. Previously the code was assuming that all entries in paths like `registry/index/*` are directories. However, in circumstances like opening the directories in macOS's finder, that can create files called `.DS_Store`. This caused it to fail to scan within that path, since it isn't a directory. This could in theory be made stricter, such as expecting directories to have a particular pattern for its name. However, it seems like we never enacted restrictions on what names are used for the git directories, so it wouldn't work very well for that. Though that is something we could consider in the future.
- Loading branch information
Showing
2 changed files
with
33 additions
and
25 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