diff --git a/public_html/deployment/classes/vcs.git.class.php b/public_html/deployment/classes/vcs.git.class.php index 5ea7864a1bd32188cf110ac044b36cc8640a4df6..635d9da87e49d9961eb26e4bfbf0e4fd30483151 100644 --- a/public_html/deployment/classes/vcs.git.class.php +++ b/public_html/deployment/classes/vcs.git.class.php @@ -155,12 +155,12 @@ class vcs implements iVcs { if (!file_exists($this->_sTempDir . ".git")) { $sGitCmd.='mkdir "' . $this->_sTempDir . '" && cd "' . $this->_sTempDir . '" && '; $sGitCmd.='git init >/dev/null && '; - $sGitCmd.='git remote add origin "' . $this->getUrl() . '" && '; + $sGitCmd.='git remote add origin "' . $this->getUrl() . '" 2>&1 && '; } else { - $sGitCmd.='cd "' . $this->_sTempDir . '" && '; + $sGitCmd.='cd "' . $this->_sTempDir . '" 2>&1 && '; } // $sGitCmd.='git branch -r ; '; - $sGitCmd.='git ls-remote --heads origin; git ls-remote --tags origin'; + $sGitCmd.='git ls-remote --heads origin 2>&1 ; git ls-remote --tags origin 2>&1 '; exec($sGitCmd, $aOutput, $iRc); if ($iRc == 0) { foreach ($aOutput as $sBranch) { @@ -236,15 +236,15 @@ class vcs implements iVcs { } else { if (!file_exists($this->_sTempDir . ".git")) { $sGitCmd.='mkdir "' . $this->_sTempDir . '" && cd "' . $this->_sTempDir . '" && '; - $sGitCmd.='git init >/dev/null && '; - $sGitCmd.='git remote add origin "' . $this->getUrl() . '" && '; + $sGitCmd.='git init >/dev/null 2>&1 && '; + $sGitCmd.='git remote add origin "' . $this->getUrl() . '" 2>&1 && '; } else { $sGitCmd.='cd "' . $this->_sTempDir . '" && '; } $sGitCmd.='git fetch --update-head-ok --tags --depth 1 2>&1 && '; } - $sGitCmd.='git log -1 "' . $this->_sCurrentBranch . '" ; '; + $sGitCmd.='git log -1 "' . $this->_sCurrentBranch . '" 2>&1 ; '; $sLoginfo = shell_exec($sGitCmd); $sRevision = false;