Skip to content
Snippets Groups Projects
Commit 7e9f57eb authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-176: Fix syntax error and comment

parent 8159aa4a
Branches master
No related tags found
1 merge request!35Resolve L2SS-176 "Expose git version"
......@@ -40,7 +40,7 @@ def get_version(repo: git.Repo = None) -> str:
The version string is one of:
- <tag>
- <branch> <commit>
- <branch> [<commit>]
In both cases, a "*" prefix indicates this code is not production ready. Code is considered production ready if
it is a tag and there are no local modifications.
......@@ -64,7 +64,7 @@ def get_version(repo: git.Repo = None) -> str:
if repo.is_dirty():
production_ready = False
return "{}{}{}".format("*" if not production_ready else "", commit_str)
return "{}{}".format("*" if not production_ready else "", commit_str)
# at least cache the current repo version immediately
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment