Commit dfe1e4a3 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 #36501 failed with stages
in 8 minutes and 20 seconds
Showing with 5 additions and 2 deletions
+5 -2
......@@ -44,7 +44,10 @@ def get_commit_hash():
try:
commit_hash = repo.active_branch.name + "_" + repo.head.object.hexsha[0:5]
except TypeError:
commit_hash = 'DETACHED_' + repo.head.object.hexsha[0:5]
try:
commit_hash = 'DETACHED_' + repo.head.object.hexsha[0:5]
except TypeError:
commit_hash = 'NoHash'
return commit_hash
......@@ -55,7 +58,7 @@ def get_directories(root):
:param root: root directory
:return: list of directories
"""
return [pathify(root) + item for item in os.listdir(root)]
return [os.path.join(root, item) for item in os.listdir(root)]
def get_files(directory, ext=None):
......
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