on iko/ghcjs-patch-master help sign in
Fix cleanGit for submodules of submodules (#413)
674cdf2Hamish Mackenzie
lib/clean-git.nix+1−1
@@ -108,7 +108,7 @@ then
108 # and use that to filter directory tree here
108 # and use that to filter directory tree here
109 ||
109 ||
110 lib.any (i: (lib.hasSuffix i path)) [
110 lib.any (i: (lib.hasSuffix i path)) [
111− ".gitmodules" ".git/config" ".git/index" ".git/HEAD" ".git/objects" ".git/refs" ] ||
111+ "/.git" ".gitmodules" ".git/config" ".git/index" ".git/HEAD" ".git/objects" ".git/refs" ] ||
112 (lib.strings.hasInfix ".git/modules/" path &&
112 (lib.strings.hasInfix ".git/modules/" path &&
113 lib.any (i: (lib.hasSuffix i path)) [
113 lib.any (i: (lib.hasSuffix i path)) [
114 "config" "index" "HEAD" "objects" "refs" ]);
114 "config" "index" "HEAD" "objects" "refs" ]);