Add environment variable LANG=C to gitstatus

As described in #6086 there will be an error when one set another
language than default (Unix: LANG=C).

Now setting the default language to english by the environment variable
LANG.
This commit is contained in:
sheveko 2017-05-13 13:16:53 +02:00
parent 291e96dcd0
commit 18739d848f

View File

@ -30,7 +30,7 @@ def get_tagname_or_hash():
# `git status --porcelain --branch` can collect all information
# branch, remote_branch, untracked, staged, changed, conflicts, ahead, behind
po = Popen(['git', 'status', '--porcelain', '--branch'], stdout=PIPE, stderr=PIPE)
po = Popen(['git', 'status', '--porcelain', '--branch'], env={"LANG": "C"}, stdout=PIPE, stderr=PIPE)
stdout, sterr = po.communicate()
if po.returncode != 0:
sys.exit(0) # Not a git repository