mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 20:51:00 +01:00
Add git submodule fixes from @bjornfor
This fixes fetching repositories with no submodules and also cleans up .git files in checkouts.
This commit is contained in:
parent
ea861be292
commit
c8d33de777
3 changed files with 10 additions and 3 deletions
|
|
@ -47,4 +47,5 @@ pathWithSubmodules=$(nix eval --raw "(builtins.fetchGit { url = file://$rootRepo
|
|||
[[ ! -e $pathWithoutSubmodules/sub/content ]]
|
||||
[[ -e $pathWithSubmodules/sub/content ]]
|
||||
|
||||
|
||||
# No .git directory or submodule reference files must be left
|
||||
test "$(find "$pathWithSubmodules" -name .git)" = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue