mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-14 16:44:59 +00:00
Merge branch 'main' of github.com:Aider-AI/aider
This commit is contained in:
commit
fff67a5917
1 changed files with 2 additions and 1 deletions
|
@ -173,6 +173,7 @@ def check_gitignore(git_root, io, ask=True):
|
||||||
existing_lines = content.splitlines()
|
existing_lines = content.splitlines()
|
||||||
for pat in patterns:
|
for pat in patterns:
|
||||||
if pat not in existing_lines:
|
if pat not in existing_lines:
|
||||||
|
if '*' in pat or (Path(git_root) / pat).exists():
|
||||||
patterns_to_add.append(pat)
|
patterns_to_add.append(pat)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
io.tool_error(f"Error when trying to read {gitignore_file}: {e}")
|
io.tool_error(f"Error when trying to read {gitignore_file}: {e}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue