Skip to content

Commit fd84719

Browse files
committed
Merge pull request #174 from polrop/display-commit-msg-hook-output
Display 'commit-msg' hook output.
2 parents daae73a + a239922 commit fd84719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PBGitIndex.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ - (void)commitWithMessage:(NSString *)commitMessage andVerify:(BOOL) doVerify
240240
hookOutput];
241241
}
242242

243-
if (![repository executeHook:@"commit-msg" withArgs:[NSArray arrayWithObject:commitMessageFile] output:nil]) {
243+
if (![repository executeHook:@"commit-msg" withArgs:[NSArray arrayWithObject:commitMessageFile] output:&hookOutput]) {
244244
hookFailureMessage = [NSString stringWithFormat:@"Commit-msg hook failed%@%@",
245245
[hookOutput length] > 0 ? @":\n" : @"",
246246
hookOutput];

0 commit comments

Comments
 (0)