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.
2 parents d01c0ef + e481f37 commit ad2edbdCopy full SHA for ad2edbd
PBGitRepository.m
@@ -509,6 +509,8 @@ - (NSString *)workingDirectory
509
{
510
if ([self.fileURL.path hasSuffix:@"/.git"])
511
return [self.fileURL.path substringToIndex:[self.fileURL.path length] - 5];
512
+ else if ([[self config] valueForKeyPath:@"core.worktree"])
513
+ return [self.fileURL.path stringByAppendingPathComponent:[[self config] valueForKeyPath:@"core.worktree"]];
514
else
515
return self.fileURL.path; // probably submodule
516
}
0 commit comments