Commit:    31ccabcd4f9c19844192f3b7fa72c2bbaf2ed6b7
Author:    Alexander Moskaliov <ir...@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) {


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to