mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
fix(findGitIgnores): Infinite recursion if .git directory doesn't exist
This commit is contained in:
parent
3c92540611
commit
82d8f82544
1 changed files with 1 additions and 1 deletions
2
lib.nix
2
lib.nix
|
@ -52,7 +52,7 @@ let
|
|||
# Find gitignore files recursively in parent directory stopping with .git
|
||||
findGitIgnores = path:
|
||||
let
|
||||
parent = path + "/..";
|
||||
parent = builtins.dirOf path;
|
||||
gitIgnore = path + "/.gitignore";
|
||||
isGitRoot = builtins.pathExists (path + "/.git");
|
||||
hasGitIgnore = builtins.pathExists gitIgnore;
|
||||
|
|
Loading…
Add table
Reference in a new issue