]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix: git log works better then git show
authorMathias Klette <mathias.klette@profitbricks.com>
Wed, 28 Sep 2011 14:28:28 +0000 (16:28 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Wed, 28 Sep 2011 14:28:28 +0000 (16:28 +0200)
lib/git_helper.py

index 21d65ac59772e9ce0456ccaeb321e1d14aa44bcb..fac1e3e8d6ccae6937c762d996c4a0381ccc81e2 100644 (file)
@@ -254,7 +254,7 @@ def git_get_treeish(refname):
     """
     cmd = [
         GIT, 
-        'show', '--oneline', 
+        'log', '--oneline', '-n', '1',
         '%s' % refname
     ]
     cmdobj = subprocess.Popen(