Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 3f4c435d5fe24fc9821b650aceefaf1e3fefe0dd 1 parent d1298a6
@laullon laullon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  PBGitTree.m
View
2  PBGitTree.m
@@ -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]];
Please sign in to comment.
Something went wrong with that request. Please try again.