cmarcusreid / git-status-cache

High performance cache for git repository status. Clients can retrieve information via named pipe.
MIT License
16 stars 4 forks source link

Check that path exists before discovering repository. #6

Closed cmarcusreid closed 9 years ago

cmarcusreid commented 9 years ago

While handling file change notifications after a large branch switch, repository discovery fails due to files no longer existing.

Git.GetRefStatus.FailedToDiscoverRepository Failed to open repository. { "path: "E:/someInvalidPath", "result": "Requested object could not be found", "lastError": "Failed to resolve path 'E:/someInvalidPath': The system cannot find the file specified.\r\n" }

Repro: Create directory with single file in it under monitored repo. Delete directory.

cmarcusreid commented 9 years ago

Fixed by 0d6f221ef14f2b8ced34080b3a5b8789724900b1.