Prevent infinite recursion in gitignore filter construction

This commit is contained in:
adisbladis 2020-03-01 08:45:52 +00:00
parent 6f5d96a5fa
commit a7fec487f8
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -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: