diff --git a/public_html/deployment/classes/vcs.git.class.php b/public_html/deployment/classes/vcs.git.class.php
index 6ebef5979b44346caf16ee345028805eb1aff4f7..7012be83d0d63e903ba621a79f93cc27b5e75ad6 100644
--- a/public_html/deployment/classes/vcs.git.class.php
+++ b/public_html/deployment/classes/vcs.git.class.php
@@ -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);
         }