fix missing env

This commit is contained in:
Paul Gauthier 2024-05-24 12:59:48 -07:00
parent d41bf592a0
commit d48edfcd00

View file

@ -520,8 +520,8 @@ class Commands:
combined_output = None combined_output = None
try: try:
args = "git " + args args = "git " + args
if 'GIT_EDITOR' not in subprocess.os.environ: env = dict(subprocess.os.environ)
env = dict(GIT_EDITOR="true", **subprocess.os.environ) env["GIT_EDITOR"] = "true"
result = subprocess.run( result = subprocess.run(
args, args,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,