We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 587cb0b commit bf0813eCopy full SHA for bf0813e
PBGitRepositoryWatcher.m
@@ -142,8 +142,12 @@ - (void) _handleEventCallback:(NSArray *)eventPaths {
142
143
// subdirs of working dir
144
else {
145
- event |= PBGitRepositoryWatcherEventTypeWorkingDirectory;
146
- [paths addObject:eventPath.path];
+ // Try to get the git status of the changed path using libgit2
+ if (![eventPath.path hasSuffix:@"/.git/"])
147
+ {
148
+ event |= PBGitRepositoryWatcherEventTypeWorkingDirectory;
149
+ [paths addObject:eventPath.path];
150
+ }
151
}
152
153
0 commit comments