Merge pull request #120 from disco-stu/master

Use LANG='C' to prevent language specific git output.
This commit is contained in:
Shrey Banga 2014-01-15 01:44:11 -08:00
commit 790fc115e9

View file

@ -6,7 +6,7 @@ def get_git_status():
has_untracked_files = False
origin_position = ""
output = subprocess.Popen(['git', 'status', '--ignore-submodules'],
stdout=subprocess.PIPE).communicate()[0]
env={"LANG": "C"}, stdout=subprocess.PIPE).communicate()[0]
for line in output.split('\n'):
origin_status = re.findall(
r"Your branch is (ahead|behind).*?(\d+) comm", line)