Skip to content

Commit

Permalink
contrib/ciabot: git-describe commit instead of HEAD
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sven Eckelmann authored and Junio C Hamano committed Oct 29, 2010
1 parent ca20906 commit 06ac01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ciabot/ciabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def report(refname, merged):
branch = os.path.basename(refname)

# Compute a shortnane for the revision
rev = do("git describe ${merged} 2>/dev/null") or merged[:12]
rev = do("git describe '"+ merged +"' 2>/dev/null") or merged[:12]

# Extract the neta-information for the commit
rawcommit = do("git cat-file commit " + merged)
Expand Down

0 comments on commit 06ac01a

Please sign in to comment.