[Xfce4-commits] <postler:master> Use 'git describe' to generate the git version string

Christian Dywan noreply at xfce.org
Sun Jul 18 15:40:12 CEST 2010


Updating branch refs/heads/master
         to 1a74b862e4d929009784b8fad15265fae4879d39 (commit)
       from ce124ca07d5e8fae701522d2f30b4fc68fe77f9d (commit)

commit 1a74b862e4d929009784b8fad15265fae4879d39
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jul 14 23:01:01 2010 +0200

    Use 'git describe' to generate the git version string

 wscript |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/wscript b/wscript
index 839863a..25bf16d 100644
--- a/wscript
+++ b/wscript
@@ -40,9 +40,9 @@ APPNAME = 'postler'
 VERSION = str (major) + '.' + str (minor) + '.' + str (micro)
 
 try:
-    git = Utils.cmd_output (['git', 'rev-parse', '--short', 'HEAD'], silent=True)
+    git = Utils.cmd_output (['git', 'describe'], silent=True)
     if git:
-        VERSION = (VERSION + '-' + git).strip ()
+        VERSION = git
 except:
     pass
 



More information about the Xfce4-commits mailing list