Skip to content
Snippets Groups Projects
Commit 183c93e5 authored by Axel Hahn's avatar Axel Hahn
Browse files

- fix: checkout tags with git version 1.7

parent d804f213
No related branches found
No related tags found
No related merge requests found
......@@ -450,7 +450,7 @@ class vcs implements iVcs {
// $sGitCmd .= ' git clone --depth 1 --recursive --branch "' . $sBranchname . '" "' . $this->getUrl() . '" "' . $sWorkDir . '" 2>&1; ';
//
$sGitCmd .= 'echo git clone "' . $this->getUrl() . '" "'.$sWorkDir.'" 2>&1 \&\& cd "'.$sWorkDir.'" \&\& git checkout "' . $sBranchname . '" ; ';
$sGitCmd .= ' git clone "' . $this->getUrl() . '" "'.$sWorkDir.'" 2>&1 && cd "'.$sWorkDir.'" && git checkout 2>&1 ';
$sGitCmd .= ' git clone "' . $this->getUrl() . '" "'.$sWorkDir.'" 2>&1 && cd "'.$sWorkDir.'" && git checkout "' . $sBranchname . '" 2>&1 ';
$this->log(__FUNCTION__." start command $sGitCmd");
// $sReturn = shell_exec($sGitCmd);
exec($sGitCmd, $sReturn, $iRc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment