Ignore numerals before "+" in tag
This commit is contained in:
parent
5fcfee7f4d
commit
a8fa5e9158
2
wscript
2
wscript
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user