fix git version detection
authorRalf Jung <post@ralfj.de>
Sun, 15 Sep 2013 14:06:31 +0000 (16:06 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 15 Sep 2013 14:06:31 +0000 (16:06 +0200)
vcs.py

diff --git a/vcs.py b/vcs.py
index 14944788a5b7b2259fd7ae07618f16d7dc17e959..acb23e8b8cdb2a418d38e359bf766c8a3a5a2e10 100644 (file)
--- a/vcs.py
+++ b/vcs.py
@@ -90,8 +90,7 @@ class Git:
                print()
 
        def version(self):
-               repo = git.Repo(self.folder)
-               v = repo.git.describe()
+               v = git.describe(split=False)
                return v[len(get_non_digit_prefix(v)):] # remove the non-digit prefix from v (so that it starts with a number)
 
        def checkVersions(self):