From: Ralf Jung Date: Sun, 15 Sep 2013 14:06:31 +0000 (+0200) Subject: fix git version detection X-Git-Url: https://git.ralfj.de/mass-build.git/commitdiff_plain/6c0b914e81cc002d48479074dffe903bf6170a87?hp=6b134177027b31d6507fc5904595a2847116c1bf fix git version detection --- diff --git a/vcs.py b/vcs.py index 1494478..acb23e8 100644 --- 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):