{"thread":{"id":"25165","subject":"[PATCH] contrib/ciabot: git-describe commit instead of HEAD","startedAt":"2010-09-20T09:31:22Z","lastAt":"2010-09-20T09:31:22Z","messageCount":1,"participants":["Sven Eckelmann"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"151099","messageId":"1284975082-25994-1-git-send-email-sven.eckelmann@gmx.de","threadId":"25165","inReplyTo":null,"subject":"[PATCH] contrib/ciabot: git-describe commit instead of HEAD","fromName":"Sven Eckelmann","fromEmail":"sven.eckelmann@gmx.de","sentAt":"2010-09-20T09:31:22Z","receivedAt":"2010-09-20T09:31:22Z","isPatch":true,"sender":{"key":"sven.eckelmann@gmx.de","avatar":null},"body":"For each commit a shorter version of the name will be generated. This is\neither the truncated hash or the output of git-describe. The\ncall to git-describe was only made with an empty shell variable instead\nof an actual commit hash. Thus it only described the current HEAD and\nnot each commit we want to submit to cia.vc.\n\nSigned-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>\n---\nI send this patch already two weeks ago and got no reaction. This is a\nresent in case it was forgotton.\n\n contrib/ciabot/ciabot.py |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/ciabot/ciabot.py b/contrib/ciabot/ciabot.py\nindex d0627e0..9775dff 100755\n--- a/contrib/ciabot/ciabot.py\n+++ b/contrib/ciabot/ciabot.py\n@@ -122,7 +122,7 @@ def report(refname, merged):\n     branch = os.path.basename(refname)\n \n     # Compute a shortnane for the revision\n-    rev = do(\"git describe ${merged} 2>/dev/null\") or merged[:12]\n+    rev = do(\"git describe '\"+ merged +\"' 2>/dev/null\") or merged[:12]\n \n     # Extract the neta-information for the commit\n     rawcommit = do(\"git cat-file commit \" + merged)\n-- \n1.7.2.3\n"}]}