From 83552662f0e6e0bda751656fea0a920a086409da Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 23 Aug 2013 11:39:10 +0800 Subject: [PATCH] Updating tracker details uses short hashes --- lib/moodle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0