Commit: 7d3adc9b7f30027dadbccf1038979cbcd7bff94d Author: Florian Anderiasch(f...@php.net) Thu, 8 Mar 2012 09:08:24 +0100 Committer: Florian Anderiasch(f...@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) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php