mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: Handle git errors in check_gitignore function
This commit is contained in:
parent
4a963adbcb
commit
d9adaa5020
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,8 @@ def check_gitignore(git_root, io, ask=True):
|
|||
return
|
||||
else:
|
||||
content = ""
|
||||
except ANY_GIT_ERROR:
|
||||
return
|
||||
if ask:
|
||||
io.tool_output("You can skip this check with --no-gitignore")
|
||||
if not io.confirm_ask(f"Add {', '.join(patterns_to_add)} to .gitignore (recommended)?"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue