mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00
Fix infinite recusion in the case where no gitignores are found
This commit is contained in:
parent
1daf54da67
commit
5e667bc527
1 changed files with 1 additions and 1 deletions
2
lib.nix
2
lib.nix
|
@ -180,7 +180,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 (builtins.pathExists path && ! isGitRoot) (findGitIgnores parent) ++ gitIgnores;
|
lib.optionals (builtins.pathExists path && 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