fix: gitignore and gitingestignore files are now correctly processed … (#416)
Some checks are pending
CI / test (macos-latest, 3.10) (push) Waiting to run
CI / test (macos-latest, 3.11) (push) Waiting to run
CI / test (macos-latest, 3.12) (push) Waiting to run
CI / test (macos-latest, 3.13) (push) Waiting to run
CI / test (macos-latest, 3.8) (push) Waiting to run
CI / test (macos-latest, 3.9) (push) Waiting to run
CI / test (true, ubuntu-latest, 3.13) (push) Waiting to run
CI / test (ubuntu-latest, 3.10) (push) Waiting to run
CI / test (ubuntu-latest, 3.11) (push) Waiting to run
CI / test (ubuntu-latest, 3.12) (push) Waiting to run
CI / test (ubuntu-latest, 3.8) (push) Waiting to run
CI / test (ubuntu-latest, 3.9) (push) Waiting to run
CI / test (windows-latest, 3.10) (push) Waiting to run
CI / test (windows-latest, 3.11) (push) Waiting to run
CI / test (windows-latest, 3.12) (push) Waiting to run
CI / test (windows-latest, 3.13) (push) Waiting to run
CI / test (windows-latest, 3.8) (push) Waiting to run
CI / test (windows-latest, 3.9) (push) Waiting to run
Build & Push Container / docker-build (push) Waiting to run
OSSF Scorecard / Scorecard analysis (push) Waiting to run

This commit is contained in:
Zarial 2025-07-15 18:11:29 +02:00 committed by GitHub
parent 11e2fce0ff
commit 74e503fa11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -83,15 +83,14 @@ async def ingest_async(
token=token,
)
if not include_gitignored:
_apply_gitignores(query)
if query.url:
_override_branch_and_tag(query, branch=branch, tag=tag)
query.include_submodules = include_submodules
async with _clone_repo_if_remote(query, token=token):
if not include_gitignored:
_apply_gitignores(query)
summary, tree, content = ingest_query(query)
await _write_output(tree, content=content, target=output)
return summary, tree, content

View file

@ -194,7 +194,6 @@ def load_ignore_patterns(root: Path, filename: str) -> set[str]:
for ignore_file in root.rglob(filename):
if ignore_file.is_file():
patterns.update(_parse_ignore_file(ignore_file, root))
return patterns