git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] contrib/ciabot: git-describe commit instead of HEAD

From
SESven Eckelmann <sven.eckelmann@gmx.de>
Date
Oct 4, 2010, 08:02 UTC
Message-ID
<1286179362-23597-1-git-send-email-sven.eckelmann@gmx.de>

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>
---
I send this patch already two and four weeks ago and got no reaction.
This is a resent in case it was forgotton.
 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: Junio C Hamano
Message 1 of 5 in “contrib/ciabot: git-describe commit instead of HEAD”
  1. contrib/ciabot: git-describe commit instead of HEADSven Eckelmann, Oct 4, 2010
  2. Junio C HamanoOct 4, 2010
  3. Sven EckelmannOct 11, 2010
  4. Junio C HamanoOct 13, 2010
  5. Sven EckelmannOct 28, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.