Skip to content
Snippets Groups Projects
Commit dea1919e authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

use a normalized version string

parent 66ab2a6e
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,8 @@ else:
if (('develop' in git_branch) or
('feature' in git_branch) or
('bugfix' in git_branch)):
VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip().decode()
VERSION = subprocess.check_output(
['git', 'describe', '--tags', '--dirty']).strip().decode().replace('-g', '+g').replace('-dirty', '.dirty').replace('-', '.post')
else:
VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip().decode().split('-')[0]
print('This is bfps version ' + VERSION)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment