Commit:    eea11ffc817f2921e766850f803918439edf99ca
Author:    David Soria Parra <d...@php.net>         Wed, 21 Mar 2012 19:31:43 
+0100
Parents:   0b695d086de59588b192276afa68de38a8e35a88
Branches:  master

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

Log:
Do not include delete revisions

Changed paths:
  M  lib/Git/PostReceiveHook.php


Diff:
eea11ffc817f2921e766850f803918439edf99ca
diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php
index 1e18195..bebe0ee 100644
--- a/lib/Git/PostReceiveHook.php
+++ b/lib/Git/PostReceiveHook.php
@@ -86,10 +86,11 @@ class PostReceiveHook extends ReceiveHook
             if ($ref['reftype'] == self::REF_TAG) {
                 $this->sendTagMail($ref['refname'], $ref['changetype'], 
$ref['old'], $ref['new']);
             }
-
-            $revisions = array_merge(
-                $revisions,
-                $this->getRevisions(escapeshellarg($ref['old'] . '..' . 
$ref['new'])));
+            if ($ref['retype'] != self::TYPE_DELETED) {
+               $revisions = array_merge(
+                   $revisions,
+                   $this->getRevisions(escapeshellarg($ref['old'] . '..' . 
$ref['new'])));
+           }
         }
 
         foreach (array_unique($revisions) as $revision) {


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

Reply via email to