mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
honor --no-git
This commit is contained in:
parent
181062dc06
commit
63d98b30d8
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ def main(args=None, input=None, output=None):
|
||||||
dry_run=args.dry_run,
|
dry_run=args.dry_run,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not git_root:
|
if not git_root and args.git:
|
||||||
if io.confirm_ask("No git repo found, create one to track GPT's changes (recommended)?"):
|
if io.confirm_ask("No git repo found, create one to track GPT's changes (recommended)?"):
|
||||||
git.Repo.init(os.getcwd())
|
git.Repo.init(os.getcwd())
|
||||||
io.tool_output("Git repository created in the current working directory.")
|
io.tool_output("Git repository created in the current working directory.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue