Commit:    0f69df22dc02dd48ede2d73b14881b7cd12ff797
Author:    Alexander Moskaliov <ir...@php.net>         Fri, 23 Mar 2012 
11:07:15 +0400
Parents:   74122fc5eefce2404a13e7fc5a37067bb6106881
Branches:  master

Link:       
http://git.php.net/?p=karma.git;a=commitdiff;h=0f69df22dc02dd48ede2d73b14881b7cd12ff797

Log:
fix fatal error while deleting tag

Changed paths:
  M  lib/Git/BugsWebPostReceiveHook.php


Diff:
0f69df22dc02dd48ede2d73b14881b7cd12ff797
diff --git a/lib/Git/BugsWebPostReceiveHook.php 
b/lib/Git/BugsWebPostReceiveHook.php
index ee54826..fb0feac 100644
--- a/lib/Git/BugsWebPostReceiveHook.php
+++ b/lib/Git/BugsWebPostReceiveHook.php
@@ -34,7 +34,7 @@ class BugsWebPostReceiveHook extends ReceiveHook
         $repourl = \Git::getRepositoryPath();
         $output = [];
 
-        if ($old == '0000000000000000000000000000000000000000') {
+        if ($old == \Git::NULLREV) {
             $cmd = sprintf(
                 "%s --git-dir=%s for-each-ref --format='%%(refname)' 
'refs/heads/*'",
                 \Git::GIT_EXECUTABLE,
@@ -53,7 +53,7 @@ class BugsWebPostReceiveHook extends ReceiveHook
                 escapeshellarg($new)
             );
             exec($cmd, $output);
-        } else {
+        } elseif ($new != \Git::NULLREV) {
             $cmd = sprintf(
                 '%s --git-dir=%s log --pretty=format:"[%%ae] %%H %%s" %s..%s',
                 \Git::GIT_EXECUTABLE,


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

Reply via email to