diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/git-notify | 5 |
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(@) | |||
145 | while (<REVLIST>) | 145 | while (<REVLIST>) |
146 | { | 146 | { |
147 | chomp; | 147 | chomp; |
148 | die "Invalid commit: $_" if not /^[0-9a-f]{40}$/; | 148 | unless (grep {$_ eq "--pretty"} @args) |
149 | { | ||
150 | die "Invalid commit: $_" if not /^[0-9a-f]{40}$/; | ||
151 | } | ||
149 | push @$revlist, $_; | 152 | push @$revlist, $_; |
150 | } | 153 | } |
151 | close REVLIST or die $! ? "Cannot execute rev-list: $!" : "rev-list exited with status: $?"; | 154 | close REVLIST or die $! ? "Cannot execute rev-list: $!" : "rev-list exited with status: $?"; |