From 88d7e2ed09bed6a42abcb056810f8a1e1152fe90 Mon Sep 17 00:00:00 2001 From: Joshua Vial Date: Tue, 8 Aug 2023 22:58:31 +1200 Subject: [PATCH] disabling GIT_EDITOR when calling /git --- aider/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index b6d214006..463b69f91 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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: