diff --git a/wscript b/wscript index 965e546410..352c9cda2c 100644 --- a/wscript +++ b/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