[smuxi/experiments/tag_messages: 5/41] smuxi-feed-stats.py: redirect git describe output



commit 5f017c4b075c937303f7dd582647ddb7f22e6035
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Dec 6 13:11:45 2015 +0100

    smuxi-feed-stats.py: redirect git describe output

 build/smuxi-feed-stats.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/build/smuxi-feed-stats.py b/build/smuxi-feed-stats.py
index 9120d6f..e1faa08 100755
--- a/build/smuxi-feed-stats.py
+++ b/build/smuxi-feed-stats.py
@@ -100,7 +100,7 @@ def parse_log():
             elif "/" in agent_res["vendor"]:
                 commithash = agent_res["vendor"].split("/")[-1]
                 try:
-                    agent_res["vendor"] = subprocess.check_output(["git", "describe", 
"%s"%commithash]).strip("\n")
+                    agent_res["vendor"] = subprocess.check_output(["git", "describe", "%s"%commithash], 
stderr=subprocess.STDOUT).strip("\n")
                 except subprocess.CalledProcessError:
                     agent_res["vendor"] = "Unknown (%s)"%commithash
                     


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]