Commit: d7109df39a028fec7e5603073147647b471c9b8a Author: Florian Anderiasch <f...@php.net> Wed, 21 Mar 2012 15:30:32 +0100 Parents: 89727c1b8c23217fafd72f06664648f350b0e525 Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=d7109df39a028fec7e5603073147647b471c9b8a Log: Fix the bugsweb POST template Changed paths: M hooks/post-receive.bugsweb Diff: d7109df39a028fec7e5603073147647b471c9b8a diff --git a/hooks/post-receive.bugsweb b/hooks/post-receive.bugsweb index 6bf432e..030997c 100755 --- a/hooks/post-receive.bugsweb +++ b/hooks/post-receive.bugsweb @@ -17,9 +17,6 @@ include 'Git/PushInformation.php'; include 'Git/ReceiveHook.php'; include 'Git/BugsWebPostReceiveHook.php'; -$recipients = exec('git config hooks.mailinglist'); -$emailPrefix = exec('git config hooks.emailprefix') ?: '[git]'; - $user = null; if (getenv('REMOTE_USER')) { $user = getenv('REMOTE_USER'); @@ -28,13 +25,10 @@ if (getenv('REMOTE_USER')) { $user = getenv('GL_USER'); } -$hook = new \Git\BugsWebPostReceiveHook(KARMA_FILE, REPOSITORY_PATH); -$rpath = $hook->getReceivedMessages( - getenv('GL_REPO_BASE_ABS') ?: REPOSITORY_PATH, - $user, - getenv('USERS_DB_FILE') ?: USERS_DB_FILE, - $recipients, - $emailPrefix); +$hook = new \Git\BugsWebPostReceiveHook( + getenv('GL_REPO_BASE_ABS') ?: REPOSITORY_PATH +); +$rpath = $hook->getReceivedMessages(); $template = "Automatic comment from GIT on behalf of %s Revision: http://git.php.net/%s -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php