mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-13 08:05:01 +00:00
test_main_git_ignore
This commit is contained in:
parent
0f14947a4c
commit
180ca7c464
2 changed files with 17 additions and 1 deletions
|
@ -38,6 +38,7 @@ def setup_git(git_root, io):
|
|||
|
||||
io.tool_output("Git repository created in the current working directory.")
|
||||
git_root = str(Path.cwd().resolve())
|
||||
check_gitignore(git_root, None)
|
||||
return git_root
|
||||
|
||||
|
||||
|
@ -55,7 +56,7 @@ def check_gitignore(git_root, io):
|
|||
else:
|
||||
content = ""
|
||||
|
||||
if not io.confirm_ask(f"Add {pat} to .gitignore (recommended)?"):
|
||||
if io and not io.confirm_ask(f"Add {pat} to .gitignore (recommended)?"):
|
||||
return
|
||||
|
||||
if content and not content.endswith("\n"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue