Skip to content
Extraits de code Groupes Projets
Valider 5248f601 rédigé par Brian Beckman's avatar Brian Beckman Validation de Matthieu Aubry
Parcourir les fichiers

Ensure git commands are run in the appropriate directory. (#8771) (#10532)

parent ac0c6748
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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)
......
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