Skip to content

Commit

Permalink
Revert "cleanGit: Detect when called inside a submodule (#847)" (#890)
Browse files Browse the repository at this point in the history
This reverts commit 3798469.
  • Loading branch information
hamishmack committed Oct 20, 2020
1 parent 0af3998 commit 3991463
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/clean-git.nix
Expand Up @@ -53,10 +53,9 @@ let
lines = s: filter (x : x != [] && x != "") (split "\n" s);

origSrcSubDir = toString (src.origSrcSubDir or src);
directoryExists = path: builtins.pathExists (builtins.toPath path + "/.");
in

if directoryExists (origSrcSubDir + "/.git")
if builtins.pathExists (origSrcSubDir + "/.git")
then
let
hasIndex = builtins.pathExists (origSrcSubDir + "/.git/index");
Expand Down

0 comments on commit 3991463

Please sign in to comment.