Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Beckman <bkbeckman@users.noreply.github.com>2016-09-26 22:52:51 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2016-09-26 22:52:51 +0300
commit5248f6015199a3ddf50a356019589deeeed1a94b (patch)
tree546dd94acd7365f691de64a55d224b6281bf4525 /plugins/TestRunner
parentac0c6748c670790e6dd3a6d2d5fb66f687743909 (diff)
Ensure git commands are run in the appropriate directory. (#8771) (#10532)
Diffstat (limited to 'plugins/TestRunner')
-rw-r--r--plugins/TestRunner/Commands/TestsRunOnAws.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/TestRunner/Commands/TestsRunOnAws.php b/plugins/TestRunner/Commands/TestsRunOnAws.php
index 65bce267e0..b684a7035a 100644
--- a/plugins/TestRunner/Commands/TestsRunOnAws.php
+++ b/plugins/TestRunner/Commands/TestsRunOnAws.php
@@ -148,7 +148,8 @@ You can also pass any argument to the command and they will be forwarded to the
if(!SettingsPiwik::isGitDeployment()) {
return 'WARN: it does not look like a Piwik repository clone - you must setup Piwik from git to proceed';
}
- return trim(`git rev-parse HEAD`);
+ $gitCmd = 'git -C ' . escapeshellarg(PIWIK_INCLUDE_PATH) . ' rev-parse HEAD';
+ return trim(shell_exec($gitCmd));
}
private function buildFinishedMessage($testSuite, $host)