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:
-rw-r--r--plugins/TestRunner/Commands/TestsRunOnAws.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/TestRunner/Commands/TestsRunOnAws.php b/plugins/TestRunner/Commands/TestsRunOnAws.php
index c894f80e90..3e99e05a6b 100644
--- a/plugins/TestRunner/Commands/TestsRunOnAws.php
+++ b/plugins/TestRunner/Commands/TestsRunOnAws.php
@@ -142,6 +142,10 @@ This feature is still beta and there might be problems with pictures and/or bina
private function getCurrentGitHash()
{
+ // we should not use 'git' executable unless we are in a git clone
+ if(!file_exists(PIWIK_INCLUDE_PATH . '/.git/')) {
+ 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`);
}