mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
Set GIT_EDITOR environment variable only if it is not already set.
This commit is contained in:
parent
9aee429657
commit
d41bf592a0
1 changed files with 2 additions and 1 deletions
|
@ -520,7 +520,8 @@ class Commands:
|
|||
combined_output = None
|
||||
try:
|
||||
args = "git " + args
|
||||
env = dict(GIT_EDITOR="true", **subprocess.os.environ)
|
||||
if 'GIT_EDITOR' not in subprocess.os.environ:
|
||||
env = dict(GIT_EDITOR="true", **subprocess.os.environ)
|
||||
result = subprocess.run(
|
||||
args,
|
||||
stdout=subprocess.PIPE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue