From: Frederic Massart Date: Fri, 23 Aug 2013 03:39:10 +0000 (+0800) Subject: Updating tracker details uses short hashes X-Git-Tag: v0.4.2^2 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=83552662f0e6e0bda751656fea0a920a086409da;p=mdk.git Updating tracker details uses short hashes --- diff --git a/lib/moodle.py b/lib/moodle.py index 85e5249..c74a916 100644 --- a/lib/moodle.py +++ b/lib/moodle.py @@ -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)