Skip to content
Extraits de code Groupes Projets
Valider f69cd753 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

fix: eviter une erreur si la commande est executée avec sh

parent 69f825b1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -187,7 +187,7 @@ function salvatore_vcs_git_push_repository_dist($dir_repo, $user=null, $pass=nul
$commands = [
"git stash -q 2>&1",
"git pull --rebase 2>&1",
"if [[ \$(git stash list) ]]; then git stash pop -q 2>&1; fi;",
"bash -c 'if [[ \$(git stash list) ]]; then git stash pop -q 2>&1; fi;'",
"git push 2>&1",
];
......@@ -203,4 +203,4 @@ function salvatore_vcs_git_push_repository_dist($dir_repo, $user=null, $pass=nul
chdir($d);
return array($res, implode("\n", $output));
}
\ No newline at end of file
}
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