@matheusbsbs / matheus-bagliano / commits / 06ac01a46a
Fork 0

contrib/ciabot: git-describe commit instead of HEAD

For each commit a shorter version of the name will be generated. This is either the truncated hash or the output of git-describe. The call to git-describe was only made with an empty shell variable instead of an actual commit hash. Thus it only described the current HEAD and not each commit we want to submit to cia.vc. Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sven Eckelmann committed Sep 20, 2010 at 11:31 UTC 06ac01a46af471207b93266e55eb9880e87e0114
1 file changed +1 -1
contrib/ciabot/ciabot.py
+1 -1
@@ -122,7 +122,7 @@ def report(refname, merged):
122 branch = os.path.basename(refname)
123
124 # Compute a shortnane for the revision
125 - rev = do("git describe ${merged} 2>/dev/null") or merged[:12]
125 + rev = do("git describe '"+ merged +"' 2>/dev/null") or merged[:12]
126
127 # Extract the neta-information for the commit
128 rawcommit = do("git cat-file commit " + merged)