Revert "cleanGit: Detect when called inside a submodule (#847)" (#890)
This reverts commit 3798469c3fb60d49dee858df39cecc59203af29a.
commit39914630438b7ee3ff244f39f6cf9bdbc337557f
authorHamish Mackenzie <Hamish.Mackenzie@iohk.io>
dateTue 20 Oct 2020, 22:25 (6 years ago)
parent0af3998
lib/clean-git.nix+1−2
@@ -53,10 +53,9 @@ let
5353 lines = s: filter (x : x != [] && x != "") (split "\n" s);
5454
5555 origSrcSubDir = toString (src.origSrcSubDir or src);
56− directoryExists = path: builtins.pathExists (builtins.toPath path + "/.");
5756in
5857
59−if directoryExists (origSrcSubDir + "/.git")
58+if builtins.pathExists (origSrcSubDir + "/.git")
6059then
6160 let
6261 hasIndex = builtins.pathExists (origSrcSubDir + "/.git/index");