]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix: correct substitution order
authorMathias Klette <mathias.klette@profitbricks.com>
Mon, 19 Sep 2011 09:45:27 +0000 (11:45 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Mon, 19 Sep 2011 09:45:27 +0000 (11:45 +0200)
lib/git_helper.py

index e978ccb9aa9cdf93b58151b16f694a7ce80bb469..21d65ac59772e9ce0456ccaeb321e1d14aa44bcb 100644 (file)
@@ -289,9 +289,9 @@ def git_get_treeish(refname):
         stdout_str = cmdobj.stdout.read().split(" ")
         logger.debug(
             'found treeish "%s" for refspec "%s", log: "%s"' % (
-                refname, 
                 stdout_str[0],
-                " ".join(stdout_str[1:])
+                refname, 
+                " ".join(stdout_str[1:]).rstrip()
             )
         )
         return stdout_str[0]