diff --git a/public_html/deployment/classes/vcs.git.class.php b/public_html/deployment/classes/vcs.git.class.php index 93fd235d267aa49031603aba8323ebb95989bd8e..46eb67fd6ff834e21f6153cea1e8eb6d4bcb85d5 100644 --- a/public_html/deployment/classes/vcs.git.class.php +++ b/public_html/deployment/classes/vcs.git.class.php @@ -271,7 +271,7 @@ class vcs implements iVcs { // if a subdir .git exists: // Verify if git remote -v contains the current git url // If not, we delete it - $sPreCmd='cd "' . $sWorkdir . '" 2>&1 && git remote -v 2>&1 | grep "' . $sGitUrl . '" >/dev/null || ( echo "DELETING .git dir..."; rm -rf .git && rc=$?; echo "rc=$rc"; sleep 1; exit $rc) '; + $sPreCmd='cd "' . $sWorkdir . '" 2>&1 && git remote -v 2>&1 | grep -F "' . $sGitUrl . '" >/dev/null || ( echo "DELETING .git dir..."; rm -rf .git && rc=$?; echo "rc=$rc"; sleep 1; exit $rc) '; $this->log(__FUNCTION__." - start PRE command <code>$sPreCmd</code>"); exec($sPreCmd, $aPreLines, $iRc); if (!$iRc==0){