mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
handle encoding error when checking .gitignore
This commit is contained in:
parent
f3d3815201
commit
c4f6ce6435
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ 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 pat in content.splitlines():
|
||||
if content and pat in content.splitlines():
|
||||
return
|
||||
else:
|
||||
content = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue