Skip to content

Commit 3e1a331

Browse files
committed
Fix submodule gitx usage
Dunno why I needed to do this, I seem to recall it worked before all my changes… maybe I was just using some other fork.
1 parent 5a224cf commit 3e1a331

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

PBGitRepository.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,8 @@ - (NSString *)workingDirectory
509509
{
510510
if ([self.fileURL.path hasSuffix:@"/.git"])
511511
return [self.fileURL.path substringToIndex:[self.fileURL.path length] - 5];
512-
else if ([[self outputForCommand:@"rev-parse --is-inside-work-tree"] isEqualToString:@"true"])
513-
return [PBGitBinary path];
514-
515-
return nil;
512+
else
513+
return self.fileURL.path; // probably submodule
516514
}
517515

518516
#pragma mark Remotes

0 commit comments

Comments
 (0)