diff --git a/public_html/deployment/classes/vcs.git.class.php b/public_html/deployment/classes/vcs.git.class.php
index 641d2d29f90517bc87cdc20f61170f27daee6c4f..0f8bce58760f494ae3596c9aef3536941614c4f6 100644
--- a/public_html/deployment/classes/vcs.git.class.php
+++ b/public_html/deployment/classes/vcs.git.class.php
@@ -242,9 +242,11 @@ class vcs implements iVcs {
                 $sGitCmd.='cd "' . $this->_sTempDir . '" && ';
             }
             
-            // TODO: git 1.9 does needs only the 1st line
-            $sGitCmd.='git fetch --update-head-ok --depth 1 2>&1 && '
-                .'git fetch --update-head-ok --tags --depth 1 2>&1 && ';
+            // TODO: git 1.9 does needs only the line with --tags
+            $sGitCmd.=' ( '
+                    . 'git fetch --update-head-ok --tags --depth 1 2>&1 ; '
+                    . 'git fetch --update-head-ok --depth 1 2>&1 '
+                    . ') && ';
         }
 
         $sGitCmd.='git log -1 "' . $this->_sCurrentBranch . '" 2>&1 ; ';