mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Prevent infinite recursion in gitignore filter construction
This commit is contained in:
parent
6f5d96a5fa
commit
a7fec487f8
1 changed files with 1 additions and 1 deletions
2
lib.nix
2
lib.nix
|
@ -104,7 +104,7 @@ let
|
||||||
hasGitIgnore = builtins.pathExists gitIgnore;
|
hasGitIgnore = builtins.pathExists gitIgnore;
|
||||||
gitIgnores = if hasGitIgnore then [ gitIgnore ] else [];
|
gitIgnores = if hasGitIgnore then [ gitIgnore ] else [];
|
||||||
in
|
in
|
||||||
lib.optionals (! isGitRoot) (findGitIgnores parent) ++ gitIgnores;
|
lib.optionals (builtins.toString path != "/" && ! isGitRoot) (findGitIgnores parent) ++ gitIgnores;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Provides a source filtering mechanism that:
|
Provides a source filtering mechanism that:
|
||||||
|
|
Loading…
Add table
Reference in a new issue