Commit: 581922de1992198175a75458fbea2c9066d7dea0 Author: David Soria Parra <d...@php.net> Wed, 21 Mar 2012 19:48:30 +0100 Parents: 1f3087ca7e2bcdad1695b789797ff43079cee36f Branches: dsp/playground
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=581922de1992198175a75458fbea2c9066d7dea0 Log: Omit already existing revisions Changed paths: M lib/Git/PostReceiveHook.php Diff: 581922de1992198175a75458fbea2c9066d7dea0 diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php index bebe0ee..937c283 100644 --- a/lib/Git/PostReceiveHook.php +++ b/lib/Git/PostReceiveHook.php @@ -94,7 +94,9 @@ class PostReceiveHook extends ReceiveHook } foreach (array_unique($revisions) as $revision) { - $this->sendCommitMail($revision); + if (!$this->isRevExistsInBranches($revision, $this->allBranches)) { + $this->sendCommitMail($revision); + } } } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php