Skip to content
Extraits de code Groupes Projets
Valider 427bf2f5 rédigé par mattab's avatar mattab
Parcourir les fichiers

Only show git:commit and git:push command when development mode is on and Git...

Only show git:commit and git:push command when development mode is on and Git repository is found refs  #6695
parent 368c1ac2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
......@@ -21,7 +22,7 @@ class GitCommit extends ConsoleCommand
{
public function isEnabled()
{
return Development::isEnabled();
return Development::isEnabled() && SettingsPiwik::isGitDeployment();
}
protected function configure()
......
......@@ -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 GitPush extends ConsoleCommand
{
public function isEnabled()
{
return Development::isEnabled();
return Development::isEnabled() && SettingsPiwik::isGitDeployment();
}
protected function configure()
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter