From: Sven Eckelmann <sven.eckelmann@gmx.de>
To: git@vger.kernel.org
Cc: esr@thyrsus.com, gitster@pobox.com,
Sven Eckelmann <sven.eckelmann@gmx.de>
Subject: [PATCH] contrib/ciabot: git-describe commit instead of HEAD
Date: Thu, 9 Sep 2010 01:13:18 +0200 [thread overview]
Message-ID: <1283987598-27255-1-git-send-email-sven.eckelmann@gmx.de> (raw)
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>
---
contrib/ciabot/ciabot.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py
index d0627e0..9775dff 100755
--- a/contrib/ciabot/ciabot.py
+++ b/contrib/ciabot/ciabot.py
@@ -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)
--
1.7.2.3
next reply other threads:[~2010-09-08 23:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 23:13 Sven Eckelmann [this message]
2010-09-20 9:31 [PATCH] contrib/ciabot: git-describe commit instead of HEAD Sven Eckelmann
2010-10-04 8:02 Sven Eckelmann
2010-10-04 17:47 ` Junio C Hamano
2010-10-11 10:43 ` Sven Eckelmann
2010-10-13 19:24 ` Junio C Hamano
2010-10-28 11:16 ` Sven Eckelmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1283987598-27255-1-git-send-email-sven.eckelmann@gmx.de \
--to=sven.eckelmann@gmx.de \
--cc=esr@thyrsus.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.