aboutsummaryrefslogtreecommitdiff
path: root/tools/git-notify
diff options
context:
space:
mode:
Diffstat (limited to 'tools/git-notify')
-rwxr-xr-xtools/git-notify5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/git-notify b/tools/git-notify
index 8ade7b8a..e64754c3 100755
--- a/tools/git-notify
+++ b/tools/git-notify
@@ -145,7 +145,10 @@ sub git_rev_list(@)
while (<REVLIST>)
{
chomp;
- die "Invalid commit: $_" if not /^[0-9a-f]{40}$/;
+ unless (grep {$_ eq "--pretty"} @args)
+ {
+ die "Invalid commit: $_" if not /^[0-9a-f]{40}$/;
+ }
push @$revlist, $_;
}
close REVLIST or die $! ? "Cannot execute rev-list: $!" : "rev-list exited with status: $?";