nixpkgs-fmt lib.nix

This commit is contained in:
adisbladis 2020-02-29 21:27:38 +00:00
parent 924746ff9a
commit b81a94878f
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -103,7 +103,8 @@ let
isGitRoot = builtins.pathExists (path + "/.git");
hasGitIgnore = builtins.pathExists gitIgnore;
gitIgnores = if hasGitIgnore then [ gitIgnore ] else [];
in lib.optionals (! isGitRoot) (findGitIgnores parent) ++ gitIgnores;
in
lib.optionals (! isGitRoot) (findGitIgnores parent) ++ gitIgnores;
/*
Provides a source filtering mechanism that: