Skip to content
Snippets Groups Projects
Commit 1e8e6c13 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

CI Webgui: fix vcs.git class: remove ending "&&" in shell command

parent 8c3edd4e
No related branches found
No related tags found
No related merge requests found
......@@ -94,9 +94,9 @@ class vcs implements iVcs {
$this->_aCfg = $aRepoConfig;
// define temp dir
$this->_setTempdir();
$this->_sKeyfile = $this->_aCfg["dataDir"] . "/sshkeys/" . $this->_aCfg["auth"];
$this->_sWrapper = $this->_aCfg["appRootDir"] . "/shellscripts/gitsshwrapper.sh";
$this->_setTempdir();
return $this->_aCfg = $aRepoConfig;
}
......@@ -111,7 +111,7 @@ class vcs implements iVcs {
$sGitCmd = 'export GIT_SSH="' . $this->_sWrapper . '" ; export PKEY="' . $this->_sKeyfile . '" ; ';
$sGitCmd.='mkdir -p "' . $this->_sTempDir . '" && cd "' . $this->_sTempDir . '" && ';
$sGitCmd.='git init >/dev/null && ';
$sGitCmd.='git remote add origin "' . $this->getUrl() . '" 2>&1 && ';
$sGitCmd.='git remote add origin "' . $this->getUrl() . '" 2>&1 ';
// $sGitCmd='time ('.$sGitCmd.')';
exec($sGitCmd, $aOutput, $iRc);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment