Commit ce89b984 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'bw_version_git_fix' into 'develop'

Fixing version git generation

See merge request !479
parents 3fbaba13 6c12ab0a
......@@ -63,8 +63,8 @@ class GitRevisionProvider(object):
version_string = check_output(command.split()).decode('utf-8').strip()
if version_string != 'fatal: No names found, cannot describe anything.':
# git describe -> tag-commits-sha-dirty
version_string = version_string.rstrip('-dirty')
version_string = version_string.lstrip('v')
version_string = version_string.replace('-dirty', '')
version_string = version_string.lstrip('v')
parts = version_string.split('-')
parts_len = len(parts)
# only tag or git sha
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment