Skip to content
Snippets Groups Projects
Commit 286d6864 authored by Guillaume Valadon's avatar Guillaume Valadon Committed by Guillaume Valadon
Browse files

Add more explicit version name

parent 55ce431f
No related branches found
No related tags found
No related merge requests found
...@@ -80,9 +80,9 @@ def _version(): ...@@ -80,9 +80,9 @@ def _version():
sha1 = git_archive_id.strip().split()[0] sha1 = git_archive_id.strip().split()[0]
match = re.search(r'tag:(\S+)', git_archive_id) match = re.search(r'tag:(\S+)', git_archive_id)
if match: if match:
return match.group(1) return "git-archive.dev" + match.group(1)
elif sha1: elif sha1:
return sha1 return "git-archive.dev" + sha1
else: else:
return 'unknown.version' return 'unknown.version'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment