Skip to content

Commit 06ac01a

Browse files
Sven Eckelmanngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ca20906 commit 06ac01a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/ciabot/ciabot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def report(refname, merged):
122122
branch = os.path.basename(refname)
123123

124124
# 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]
126126

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

0 commit comments

Comments
 (0)