The branch PHP_POST_RECEIVE on karma.git has been updated
       via  34f6910a46bbdaf32871f9cb1cda1c41d26ca96f (commit)
      from  f2e733020f4a75f4a91b88ea73c0c8c77f455d5c (commit)

http://git.php.net/?p=karma.git;a=log;h=34f6910a46bbdaf32871f9cb1cda1c41d26ca96f;hp=f2e733020f4a75f4a91b88ea73c0c8c77f455d5c

Summary of changes:
 lib/Git/PostReceiveHook.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

-- Log ----------------------------------------
commit 34f6910a46bbdaf32871f9cb1cda1c41d26ca96f
Author: Alexander Moskaliov <ir...@php.net>
Date:   Fri Mar 16 16:18:35 2012 +0400

    fix link in deleted branch mail

diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php
index bc4c935..44c2dba 100644
--- a/lib/Git/PostReceiveHook.php
+++ b/lib/Git/PostReceiveHook.php
@@ -167,9 +167,11 @@ class PostReceiveHook extends ReceiveHook
         $message = 'Branch ' . $shortname . ' in ' . 
$this->getRepositoryName() . ' was ' . $status[$changeType] . 'd' . "\n";
         $message .= 'Date: ' . date('r') . "\n";
 
-        $message .= "\n";
-        $message .= "Link: http://git.php.net/?p="; . 
$this->getRepositoryName() . ";a=log;h=" . $newrev . ";hp=" . $oldrev . "\n";
-        $message .= "\n";
+        if ($changeType != self::TYPE_DELETED) {
+            $message .= "\n";
+            $message .= "Link: http://git.php.net/?p="; . 
$this->getRepositoryName() . ";a=log;h=" . $newrev . ";hp=" . $oldrev . "\n";
+            $message .= "\n";
+        }
 
         // forced push
         if ($replacedRevisions) {

Thank you for your contribution.

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

Reply via email to