Commit: e7cb7e7acfaa66261f38a3f8047e09e59b2e0413 Author: Alexander Moskaliov <ir...@php.net> Wed, 4 Apr 2012 16:37:31 +0400 Parents: a103092576b8d9d7ade835308e8d12ff130a59cf Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=e7cb7e7acfaa66261f38a3f8047e09e59b2e0413 Log: fix double bugs Changed paths: M lib/Git/PostReceiveHook.php Diff: diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php index 77396d4..e331101 100644 --- a/lib/Git/PostReceiveHook.php +++ b/lib/Git/PostReceiveHook.php @@ -486,7 +486,7 @@ class PostReceiveHook extends ReceiveHook $bugs = []; if (preg_match_all('/(?:(pecl|pear|php)\s*)?(?:bug|#)[\s#:]*([0-9]+)/iuX', $log, $matchedBugs, PREG_SET_ORDER)) { foreach($matchedBugs as $bug) { - $bugs[] = $bugUrlPrefixes[$bug[1]] . $bug[2]; + $bugs[$bug[2]] = $bugUrlPrefixes[$bug[1]] . $bug[2]; } } return $bugs; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php