mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
disabling GIT_EDITOR when calling /git
This commit is contained in:
parent
3698b12215
commit
88d7e2ed09
1 changed files with 2 additions and 1 deletions
|
@ -350,8 +350,9 @@ class Commands:
|
||||||
combined_output = None
|
combined_output = None
|
||||||
try:
|
try:
|
||||||
parsed_args = shlex.split("git " + args)
|
parsed_args = shlex.split("git " + args)
|
||||||
|
env = dict(GIT_EDITOR="true", **subprocess.os.environ)
|
||||||
result = subprocess.run(
|
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
|
combined_output = result.stdout
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue