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

L2SS-176: Make git version info usable from command line

parent cce3c6fe
No related branches found
No related tags found
1 merge request!35Resolve L2SS-176 "Expose git version"
......@@ -31,3 +31,6 @@ def get_version(repo: git.Repo = None) -> str:
repo = get_repo()
return "{} [{}{}]".format(repo.active_branch, repo.commit(), " (dirty)" if repo.is_dirty() else "")
if __name__ == "__main__":
print(get_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