From 3f4c435d5fe24fc9821b650aceefaf1e3fefe0dd Mon Sep 17 00:00:00 2001 From: German Laullon Date: Sat, 18 Sep 2010 11:18:57 -0700 Subject: [PATCH] blame command should be "blame -p SHA -- filename" --- PBGitTree.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBGitTree.m b/PBGitTree.m index 134648e..d6e685c 100644 --- a/PBGitTree.m +++ b/PBGitTree.m @@ -126,7 +126,7 @@ 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]];