X-Git-Url: https://git.ralfj.de/mass-build.git/blobdiff_plain/0398b4664697f3ca10da17f931e5b51060157c64..HEAD:/vcs.py diff --git a/vcs.py b/vcs.py index 9f53fe2..3fcca6d 100644 --- a/vcs.py +++ b/vcs.py @@ -86,6 +86,7 @@ class Git: print() def version(self): + os.chdir(self.folder) v = git.describe() return v[len(get_non_digit_prefix(v)):] # remove the non-digit prefix from v (so that it starts with a number)