Skip to content

Commit 3f4c435

Browse files
committed
blame command should be "blame -p SHA -- filename"
1 parent d1298a6 commit 3f4c435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PBGitTree.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ - (NSString *) blame
126126
if ([self fileSize] > 52428800) // ~50MB
127127
return [NSString stringWithFormat:@"%@ is too big to be displayed (%d bytes)", [self fullPath], [self fileSize]];
128128

129-
NSString *contents=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"blame", @"-p", [self fullPath], sha, nil]];
129+
NSString *contents=[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"blame", @"-p", sha, @"--", [self fullPath], nil]];
130130

131131
if ([self hasBinaryHeader:contents])
132132
return [NSString stringWithFormat:@"%@ appears to be a binary file of %d bytes", [self fullPath], [self fileSize]];

0 commit comments

Comments
 (0)