I’m using the git bash on windows (v1.7.10 msysgit). I set some custom folder icons on some subfolders in my repo the other day and ever since then I can no longer switch between branches without an error like:
blake@ComputerName /c/csharp (AD_NativeRefactor)
$ git checkout master
Deletion of directory 'AllertFullfillmentDB' failed. Should I try again? (y/n) n
The directory that fails isn’t always the same but it’s always 1 of the 3 subfolders that I set a custom icon on.
- I have since removed the custom icon’s with restore defaults.
- I’ve checked file permissions (it’s no different then other folders in repo).
- I’ve tried using Unlocker and no nothing is locking the directory.
- I’ve tried restarting windows.
Not really sure what to do next. Any ideas?
As I mention in the comment, cloning the repo in a different location is the simplest way to “reset”, and see if the issue persists.
Apparently, setting up custom icon on some folders on the repo has the side effect of preventing checkout between branches, because Windows would keep handle opened on some of the directories that need to be deleted.