Fallback on descibing tags.

This commit is contained in:
Steve Pulec 2019-06-30 22:51:38 -05:00
parent 6fa51ac3b4
commit 0a2bf3a262

View File

@ -61,7 +61,7 @@ def git_tag_name():
return tag_branch return tag_branch
def get_git_version_info(): def get_git_version_info():
cmd = 'git describe --tags' cmd = 'git describe --tags --always'
ver_str = subprocess.check_output(cmd, shell=True) ver_str = subprocess.check_output(cmd, shell=True)
ver, commits_since, githash = ver_str.decode().strip().split('-') ver, commits_since, githash = ver_str.decode().strip().split('-')
return ver, commits_since, githash return ver, commits_since, githash