Commit c5f87139 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed incomplete version info build (like download zip from github)

parent 962f6e03
......@@ -140,8 +140,11 @@ def cmake_disabled_modules():
def _split_into_branch_and_hash(s):
assert isinstance(s, str)
index = s.rindex("-")
return s[:index], s[index+1:]
index = s.rfind("-")
if -1==index:
return s, "unknown"
else:
return s[:index], s[index+1:]
def cmake_version_info():
version_name = get_version_information(os.getcwd())
......
Markdown is supported
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