Permalink
Browse files

blame command should be "blame -p SHA -- filename"

  • Loading branch information...
1 parent d1298a6 commit 3f4c435d5fe24fc9821b650aceefaf1e3fefe0dd @laullon laullon committed Sep 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 PBGitTree.m
View
@@ -126,7 +126,7 @@ - (NSString *) blame
if ([self fileSize] > 52428800) // ~50MB
return [NSString stringWithFormat:@"%@ is too big to be displayed (%d bytes)", [self fullPath], [self fileSize]];
- NSString *contents=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"blame", @"-p", [self fullPath], sha, nil]];
+ NSString *contents=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"blame", @"-p", sha, @"--", [self fullPath], nil]];
if ([self hasBinaryHeader:contents])
return [NSString stringWithFormat:@"%@ appears to be a binary file of %d bytes", [self fullPath], [self fileSize]];

0 comments on commit 3f4c435

Please sign in to comment.