Skip to content

Commit 4476892

Browse files
committed
GitRevList: run the log command in the correct directory when available
1 parent 8ae2cde commit 4476892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PBGitRevList.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ - (void) walkRevisionListWithSpecifier: (PBGitRevSpecifier*) rev
8787
else
8888
[arguments addObjectsFromArray:[rev parameters]];
8989

90-
91-
NSTask *task = [PBEasyPipe taskForCommand:[PBGitBinary path] withArgs:arguments inDir:[repository fileURL].path];
90+
NSString *directory = rev.workingDirectory ? rev.workingDirectory.path : repository.fileURL.path;
91+
NSTask *task = [PBEasyPipe taskForCommand:[PBGitBinary path] withArgs:arguments inDir:directory];
9292
[task launch];
9393
NSFileHandle* handle = [task.standardOutput fileHandleForReading];
9494

0 commit comments

Comments
 (0)