Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4fb184d9 authored by Vauban's avatar Vauban
Browse files

Build system: Gracefully handle git describe failure.

parent 7078de96
Branches
Tags
No related merge requests found
......@@ -107,7 +107,7 @@ def get_gateware_git_version(work_dir):
try:
git_hash = subprocess.check_output(['git', 'describe', '--tags'])
except subprocess.CalledProcessError as e:
git_hash = 0
git_hash = b"\n"
return git_hash.decode('ascii').strip("'").strip("\n")
......
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