[git][commit] karma.git: lib/Git/ReceiveHook.php
| From: | David Soria Parra | Date: | Sun, 18 Mar 2012 20:11:09 +0000 |
| Subject: | [git][commit] karma.git: lib/Git/ReceiveHook.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67937@lists.php.net to get a copy of this message | ||
Commit: 7d3adc9b7f30027dadbccf1038979cbcd7bff94d
Author: Florian Anderiasch(fa@php.net) Thu, 8 Mar 2012 09:08:24 +0100
Committer: Florian Anderiasch(fa@php.net) Thu, 8 Mar 2012 09:08:24 +0100
Parents: e6da86fbb22bc773980c2ecde77bb8875641a097
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=7d3adc9b7f30027dadbccf1038979cbcd7bff94d
Log:
Merge last refactoring steps
Changed paths:
M lib/Git/ReceiveHook.php
Diff:
7d3adc9b7f30027dadbccf1038979cbcd7bff94d
diff --git a/lib/Git/ReceiveHook.php b/lib/Git/ReceiveHook.php
index f90df10..87c4b54 100644
--- a/lib/Git/ReceiveHook.php
+++ b/lib/Git/ReceiveHook.php
@@ -139,7 +139,7 @@ class ReceiveHook
*/
private function getReceivedMessagesForRange($old, $new)
{
- $repourl = $this->getRepositoryPath();
+ $repourl = \Git::getRepositoryPath();
$output = [];
if ($old == '0000000000000000000000000000000000000000') {
@@ -155,7 +155,7 @@ class ReceiveHook
$not = count($output) > 0 ? sprintf('--not %s', escapeshellarg($heads))
: '';
$cmd = sprintf(
'%s --git-dir=%s log --pretty=format:"[%%ae] %%H %%s" %s %s',
- self::GIT_EXECUTABLE,
+ \Git::GIT_EXECUTABLE,
$repourl,
$not,
escapeshellarg($new)
@@ -164,7 +164,7 @@ class ReceiveHook
} else {
$cmd = sprintf(
'%s --git-dir=%s log --pretty=format:"[%%ae] %%H %%s" %s..%s',
- self::GIT_EXECUTABLE,
+ \Git::GIT_EXECUTABLE,
$repourl,
escapeshellarg($old),
escapeshellarg($new)