Updating tracker details uses short hashes
authorFrederic Massart <fred@moodle.com>
Fri, 23 Aug 2013 03:39:10 +0000 (11:39 +0800)
committerFrederic Massart <fred@moodle.com>
Fri, 23 Aug 2013 03:39:10 +0000 (11:39 +0800)
lib/moodle.py

index 85e5249..c74a916 100644 (file)
@@ -590,7 +590,7 @@ class Moodle(object):
 
         # Get the hash of the last upstream commit
         ref = '%s/%s' % (upstreamremote, stablebranch)
-        headcommit = self.git().hashes(ref=ref, limit=1)[0]
+        headcommit = self.git().hashes(ref=ref, limit=1, format='%h')[0]
 
         J = Jira()
         diffurl = diffurltemplate.replace('%branch%', branch).replace('%stablebranch%', stablebranch).replace('%headcommit%', headcommit)