Commit: f3cb335d3b43ec524d9c776d3f4c21fc0067c9cc Author: David Soria Parra <d...@php.net> Wed, 21 Mar 2012 19:48:30 +0100 Parents: eea11ffc817f2921e766850f803918439edf99ca Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=f3cb335d3b43ec524d9c776d3f4c21fc0067c9cc Log: Omit already existing revisions Changed paths: M lib/Git/PostReceiveHook.php Diff: f3cb335d3b43ec524d9c776d3f4c21fc0067c9cc 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