Skip to content

Commit

Permalink
Return empty list if project root is ignored (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard authored Nov 10, 2024
1 parent 9ccc839 commit 18d1cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/hatchling/builders/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def load_vcs_exclusion_patterns(self) -> list[str]:
# validate project root is not excluded by vcs
exclude_spec = pathspec.GitIgnoreSpec.from_lines(patterns)
if exclude_spec.match_file(self.root):
return patterns
return []

return patterns

Expand Down

0 comments on commit 18d1cfb

Please sign in to comment.