ICONS: corrected typo in run_git when changing the locale to C (#157)

This commit is contained in:
neuromancer 2022-03-05 21:09:05 +01:00 committed by GitHub
commit a924e765b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,7 +348,7 @@ def write_iconsdat(changed_files: list) -> str:
def run_git(*args):
my_env = os.environ.copy()
env["LANG"] = "C"
my_env["LANG"] = "C"
""" Executes a git command and returns the stdout (as line[])"""
with subprocess.Popen(args=['git'] + list(args), stdout=subprocess.PIPE, env=my_env) as child_proc:
return child_proc.stdout.readlines()