disabling GIT_EDITOR when calling /git

This commit is contained in:
Joshua Vial 2023-08-08 22:58:31 +12:00
parent 3698b12215
commit 88d7e2ed09

View file

@ -350,8 +350,9 @@ class Commands:
combined_output = None
try:
parsed_args = shlex.split("git " + args)
env = dict(GIT_EDITOR="true", **subprocess.os.environ)
result = subprocess.run(
parsed_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
parsed_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, env=env
)
combined_output = result.stdout
except Exception as e: