13
0

Ignore numerals before "+" in tag

This commit is contained in:
Robin Gareus 2016-06-24 02:34:36 +02:00
parent 5fcfee7f4d
commit a8fa5e9158

View File

@ -148,7 +148,7 @@ clang_darwin_dict['full-optimization'] = [ '-O3', '-ffast-math', '-fstrength-red
compiler_flags_dictionaries['clang-darwin'] = clang_darwin_dict;
def fetch_git_revision ():
cmd = "git describe HEAD | sed 's/^[A-Za-z]*+//'"
cmd = "git describe HEAD | sed 's/^[A-Za-z0-9]*+//'"
output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines()
rev = output[0].decode ('utf-8')
return rev