diff --git a/pkgs/build-support/fetchgit/builder.sh b/pkgs/build-support/fetchgit/builder.sh index ed3af4a7ab61..7441c944eea4 100644 --- a/pkgs/build-support/fetchgit/builder.sh +++ b/pkgs/build-support/fetchgit/builder.sh @@ -25,6 +25,10 @@ else git checkout -b __nixos_build__ origin/HEAD fi +if test -f .gitmodules; then + git submodule update --init +fi + if test -z "$leaveDotGit"; then find $out -name .git\* | xargs rm -rf fi