com karma: disable bugsweb notification for the security repo: hooks/post-receive.bugsweb
| From: | Ferenc Kovacs | Date: | Tue, 14 Oct 2014 11:37:43 +0000 |
| Subject: | com karma: disable bugsweb notification for the security repo: hooks/post-receive.bugsweb | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82286@lists.php.net to get a copy of this message | ||
Commit: 0d617f65ca8b8ba5dd6bcff3c0e8adcdec121cc0
Author: kovacs.ferenc <kovacs.ferenc@ustream.tv> Tue, 14 Oct 2014 13:37:43 +0200
Parents: f0e5bc8c605cdc3466f942aeb8fff708b3643b2a
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=0d617f65ca8b8ba5dd6bcff3c0e8adcdec121cc0
Log:
disable bugsweb notification for the security repo
Changed paths:
M hooks/post-receive.bugsweb
Diff:
diff --git a/hooks/post-receive.bugsweb b/hooks/post-receive.bugsweb
index bba2e19..fddb0c0 100755
--- a/hooks/post-receive.bugsweb
+++ b/hooks/post-receive.bugsweb
@@ -18,6 +18,11 @@ include 'Git/PushInformation.php';
include 'Git/ReceiveHook.php';
include 'Git/BugsWebPostReceiveHook.php';
+$disabled = exec('git config hooks.disableBugs');
+if ($disabled) {
+ return;
+}
+
$user = null;
if (getenv('REMOTE_USER')) {
$user = getenv('REMOTE_USER');