[git][commit] karma.git: hooks/post-receive.bugsweb
| From: | David Soria Parra | Date: | Sun, 18 Mar 2012 20:24:34 +0000 |
| Subject: | [git][commit] karma.git: hooks/post-receive.bugsweb | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67942@lists.php.net to get a copy of this message | ||
Commit: 2957304097591a898fe015a3a16e47fba6842dbc
Author: David Soria Parra(dsp@php.net) Sun, 18 Mar 2012 21:13:37 +0100
Committer: David Soria Parra(dsp@php.net) Sun, 18 Mar 2012 21:13:37 +0100
Parents: b6951f77158b0e27b2f13ebd42475c409c0e7861
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=2957304097591a898fe015a3a16e47fba6842dbc
Log:
Call the constructor correct
Changed paths:
M hooks/post-receive.bugsweb
Diff:
2957304097591a898fe015a3a16e47fba6842dbc
diff --git a/hooks/post-receive.bugsweb b/hooks/post-receive.bugsweb
index 39e6f9c..19a290e 100755
--- a/hooks/post-receive.bugsweb
+++ b/hooks/post-receive.bugsweb
@@ -5,6 +5,7 @@ namespace Karma;
const KARMA_FILE = '/git/checkout/SVNROOT/global_avail';
const REPOSITORY_PATH = '/git/repositories';
const LIB_PATH = '/git/checkout/karma/lib';
+const USERS_DB_FILE = '/git/users.db';
set_include_path(
getenv('KARMA_LIB_PATH') ?: LIB_PATH .
@@ -17,7 +18,12 @@ include 'Git/ReceiveHook.php';
include 'Git/PostReceiveHook.php';
$hook = new \Git\PostReceiveHook(KARMA_FILE, REPOSITORY_PATH);
-$rpath = $hook->getReceivedMessages();
+$rpath = $hook->getReceivedMessages(
+ getenv('GL_REPO_BASE_ABS') ?: REPOSITORY_PATH,
+ '',
+ getenv('USERS_DB_FILE') ?: USERS_DB_FILE,
+ '',
+ '');
$template = "Automatic comment from GIT on behalf of %s
Revision: http://git.php.net/%s