mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-22 10:31:30 -04:00
git-notify: Fix "global" notifications
If the number of commits included with a single push exceeds the maximum specified via "-n", a single notification will be generated instead of individual e-mails. For listing the commits within such a notification, git-rev-list(1)'s "--pretty" option is used. This yields output which the git_rev_list() subroutine didn't accept. That's now fixed.
This commit is contained in:
parent
d100429a48
commit
73141bfd92
1 changed files with 4 additions and 1 deletions
|
|
@ -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: $?";
|
||||
|
|
|
|||
Loading…
Reference in a new issue