From: Mathias Klette Date: Mon, 19 Sep 2011 09:45:27 +0000 (+0200) Subject: fix: correct substitution order X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=2b147d4642d65ee3d62de43af4966f6cef9642e2;p=profitbricks%2Fjenkins-build-scripts.git fix: correct substitution order --- diff --git a/lib/git_helper.py b/lib/git_helper.py index e978ccb..21d65ac 100644 --- a/lib/git_helper.py +++ b/lib/git_helper.py @@ -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]