From d48edfcd00fce8b3dac0aaedb0cbc74ac464cf97 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 24 May 2024 12:59:48 -0700 Subject: [PATCH] fix missing env --- aider/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index b052e5c95..9ff6098f7 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -520,8 +520,8 @@ class Commands: combined_output = None try: args = "git " + args - if 'GIT_EDITOR' not in subprocess.os.environ: - env = dict(GIT_EDITOR="true", **subprocess.os.environ) + env = dict(subprocess.os.environ) + env["GIT_EDITOR"] = "true" result = subprocess.run( args, stdout=subprocess.PIPE,