diff options
author | Robin Gareus <robin@gareus.org> | 2016-06-24 02:34:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-06-24 02:34:56 +0200 |
commit | a8fa5e9158f78e8d10aacdb1988b8409b1a831d7 (patch) | |
tree | 6a429e66f9a99e3bc5390070df470a9549f4676c /wscript | |
parent | 5fcfee7f4dbc315c56ce0e84045caddc1fe1b69e (diff) |
Ignore numerals before "+" in tag
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |