com karma: add safety value for reftype: lib/Git/ReceiveHook.php
| From: | Alexander Moskaliov | Date: | Sat, 24 Mar 2012 09:56:57 +0000 |
| Subject: | com karma: add safety value for reftype: lib/Git/ReceiveHook.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68170@lists.php.net to get a copy of this message | ||
Commit: 31ccabcd4f9c19844192f3b7fa72c2bbaf2ed6b7
Author: Alexander Moskaliov <irker@php.net> Sat, 24 Mar 2012 13:56:57 +0400
Parents: deed69a3a56adc67972a0f8795eeb539b7d8d6cb
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=31ccabcd4f9c19844192f3b7fa72c2bbaf2ed6b7
Log:
add safety value for reftype
Changed paths:
M lib/Git/ReceiveHook.php
Diff:
31ccabcd4f9c19844192f3b7fa72c2bbaf2ed6b7
diff --git a/lib/Git/ReceiveHook.php b/lib/Git/ReceiveHook.php
index e4e879a..1bf4bfa 100644
--- a/lib/Git/ReceiveHook.php
+++ b/lib/Git/ReceiveHook.php
@@ -150,7 +150,7 @@ abstract class ReceiveHook
$ref['reftype'] = self::REF_TAG;
} else {
// not support by this script
- $ref['reftype'] = null;
+ $ref['reftype'] = -1;
}
if ($ref['old'] == \GIT::NULLREV) {