Commit 2d396bb7 authored by Cresson Remi's avatar Cresson Remi
Browse files

FIX: get hash

1 merge request!4ADD: use otbtf 3.2.1 in unit tests
Pipeline #36502 failed with stages
in 9 minutes and 43 seconds
Showing with 1 addition and 1 deletion
+1 -1
...@@ -46,7 +46,7 @@ def get_commit_hash(): ...@@ -46,7 +46,7 @@ def get_commit_hash():
except TypeError: except TypeError:
try: try:
commit_hash = 'DETACHED_' + repo.head.object.hexsha[0:5] commit_hash = 'DETACHED_' + repo.head.object.hexsha[0:5]
except TypeError: except ValueError:
commit_hash = 'NoHash' commit_hash = 'NoHash'
return commit_hash return commit_hash
......
Supports Markdown
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