mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
Abandon checking gitignore if can not read file
This commit is contained in:
parent
c4f6ce6435
commit
d868e96467
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ def check_gitignore(git_root, io, ask=True):
|
|||
gitignore_file = Path(git_root) / ".gitignore"
|
||||
if gitignore_file.exists():
|
||||
content = io.read_text(gitignore_file)
|
||||
if content and pat in content.splitlines():
|
||||
if content is None:
|
||||
return
|
||||
if pat in content.splitlines():
|
||||
return
|
||||
else:
|
||||
content = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue