com karma: Fix the bugsweb POST template: hooks/post-receive.bugsweb
| From: | Florian Anderiasch | Date: | Wed, 21 Mar 2012 14:30:32 +0000 |
| Subject: | com karma: Fix the bugsweb POST template: hooks/post-receive.bugsweb | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68116@lists.php.net to get a copy of this message | ||
Commit: d7109df39a028fec7e5603073147647b471c9b8a
Author: Florian Anderiasch <fa@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