diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:04:31 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:04:31 (GMT) |
commit | 9beb250cf9eed05ba1139b202bf2412b07978ef5 (patch) | |
tree | eed41dcec662c88bbfe95434558893a4652aa144 /libexec | |
parent | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (diff) | |
download | site-9beb250cf9eed05ba1139b202bf2412b07978ef5.tar.gz |
git-notify: Ignore GitHub pull requests
GitHub uses the refs/pull namespace for pull requests.
Diffstat (limited to 'libexec')
-rwxr-xr-x | libexec/git-notify | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/git-notify b/libexec/git-notify index 8514296..316336e 100755 --- a/libexec/git-notify +++ b/libexec/git-notify | |||
@@ -3,7 +3,7 @@ | |||
3 | # Tool to send git commit notifications | 3 | # Tool to send git commit notifications |
4 | # | 4 | # |
5 | # Copyright 2005 Alexandre Julliard | 5 | # Copyright 2005 Alexandre Julliard |
6 | # Copyright 2009 Nagios Plugins Development Team | 6 | # Copyright 2009, 2013 Nagios Plugins Development Team |
7 | # | 7 | # |
8 | # This program is free software; you can redistribute it and/or | 8 | # This program is free software; you can redistribute it and/or |
9 | # modify it under the terms of the GNU General Public License as | 9 | # modify it under the terms of the GNU General Public License as |
@@ -589,7 +589,7 @@ sub send_all_notices($$$) | |||
589 | my ($old_sha1, $new_sha1, $ref) = @_; | 589 | my ($old_sha1, $new_sha1, $ref) = @_; |
590 | my ($reftype, $refname, $tagtype, $action, @notice); | 590 | my ($reftype, $refname, $tagtype, $action, @notice); |
591 | 591 | ||
592 | return if ($ref =~ /^refs\/remotes\// | 592 | return if ($ref =~ /^refs\/(?:remotes|pull)\// |
593 | or (@include_list && !grep {$_ eq $ref} @include_list)); | 593 | or (@include_list && !grep {$_ eq $ref} @include_list)); |
594 | die "The name \"$ref\" doesn't sound like a local branch or tag" | 594 | die "The name \"$ref\" doesn't sound like a local branch or tag" |
595 | if not (($reftype, $refname) = ($ref =~ /^refs\/(head|tag)s\/(.+)/)); | 595 | if not (($reftype, $refname) = ($ref =~ /^refs\/(head|tag)s\/(.+)/)); |