From 183c93e5bf68d114d1f7a72d7f96f7250b48ab44 Mon Sep 17 00:00:00 2001
From: Axel Hahn <axel.hahn@iml.unibe.ch>
Date: Thu, 23 Apr 2015 11:54:03 +0200
Subject: [PATCH] - fix: checkout tags with git version 1.7

---
 public_html/deployment/classes/vcs.git.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/deployment/classes/vcs.git.class.php b/public_html/deployment/classes/vcs.git.class.php
index 5936ed78..3605abbe 100644
--- a/public_html/deployment/classes/vcs.git.class.php
+++ b/public_html/deployment/classes/vcs.git.class.php
@@ -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);
-- 
GitLab