the output of git describe --tags is not subject to localization, so we do not need LANG= in the environment when it runs
This commit is contained in:
parent
f1aa5839c0
commit
c72748508b
2
wscript
2
wscript
@ -67,7 +67,7 @@ def fetch_gcc_version (CC):
|
|||||||
return version
|
return version
|
||||||
|
|
||||||
def fetch_git_revision ():
|
def fetch_git_revision ():
|
||||||
cmd = "LANG= git describe --tags HEAD"
|
cmd = "git describe --tags HEAD"
|
||||||
output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines()
|
output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines()
|
||||||
rev = output[0].decode('utf-8')
|
rev = output[0].decode('utf-8')
|
||||||
return rev
|
return rev
|
||||||
|
Loading…
Reference in New Issue
Block a user