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:
authormattab <matthieu.aubry@gmail.com>2014-11-19 10:25:34 +0300
committermattab <matthieu.aubry@gmail.com>2014-11-19 10:25:34 +0300
commit368c1ac269b43c5324bb1ef2da1f3604e2a716cd (patch)
tree91951fca9153c6d37d1609806b20d6324fe3d804 /plugins
parenteb8ecc396d60bc3b83994fe6efcb6cd42668c795 (diff)
Fixes #6695 show git:pull command whenever piwik is deployed from git (push and commit commands are still shown in development mode only)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CoreConsole/Commands/GitPull.php3
-rw-r--r--plugins/TestRunner/Commands/TestsRunOnAws.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/CoreConsole/Commands/GitPull.php b/plugins/CoreConsole/Commands/GitPull.php
index 65151e2e3c..e69c13bf10 100644
--- a/plugins/CoreConsole/Commands/GitPull.php
+++ b/plugins/CoreConsole/Commands/GitPull.php
@@ -11,6 +11,7 @@ namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;
use Piwik\Plugin\ConsoleCommand;
+use Piwik\SettingsPiwik;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -20,7 +21,7 @@ class GitPull extends ConsoleCommand
{
public function isEnabled()
{
- return Development::isEnabled();
+ return SettingsPiwik::isGitDeployment();
}
protected function configure()
diff --git a/plugins/TestRunner/Commands/TestsRunOnAws.php b/plugins/TestRunner/Commands/TestsRunOnAws.php
index 3e99e05a6b..495ecfa461 100644
--- a/plugins/TestRunner/Commands/TestsRunOnAws.php
+++ b/plugins/TestRunner/Commands/TestsRunOnAws.php
@@ -16,6 +16,7 @@ use Piwik\Plugins\TestRunner\Aws\Instance;
use Piwik\Plugins\TestRunner\Aws\Ssh;
use Piwik\Plugins\TestRunner\Runner\InstanceLauncher;
use Piwik\Plugins\TestRunner\Runner\Remote;
+use Piwik\SettingsPiwik;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
@@ -143,7 +144,7 @@ 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/')) {
+ 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`);