From 0b1bf668cdb55637481c7788bdb3e2cd27376d5b Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 20 Jul 2011 22:56:35 +0000 Subject: [PATCH] fetchgit: added support for fetching sub-modules svn path=/nixpkgs/trunk/; revision=27860 --- pkgs/build-support/fetchgit/builder.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/build-support/fetchgit/builder.sh b/pkgs/build-support/fetchgit/builder.sh index ed3af4a7ab6..7441c944eea 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