Permalink
Browse files

GitRevList: run the log command in the correct directory when available

  • Loading branch information...
1 parent 8ae2cde commit 44768921f37c099a5e8d24801c34c07837085dd6 @pieter committed Sep 7, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 PBGitRevList.mm
View
@@ -87,8 +87,8 @@ - (void) walkRevisionListWithSpecifier: (PBGitRevSpecifier*) rev
else
[arguments addObjectsFromArray:[rev parameters]];
-
- NSTask *task = [PBEasyPipe taskForCommand:[PBGitBinary path] withArgs:arguments inDir:[repository fileURL].path];
+ NSString *directory = rev.workingDirectory ? rev.workingDirectory.path : repository.fileURL.path;
+ NSTask *task = [PBEasyPipe taskForCommand:[PBGitBinary path] withArgs:arguments inDir:directory];
[task launch];
NSFileHandle* handle = [task.standardOutput fileHandleForReading];

0 comments on commit 4476892

Please sign in to comment.