Skip to content

Commit

Permalink
fix(findGitIgnores): Infinite recursion if .git directory doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Mar 9, 2024
1 parent 3c92540 commit 82d8f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82d8f82

Please sign in to comment.