fetchgit: added support for fetching sub-modules

svn path=/nixpkgs/trunk/; revision=27860
This commit is contained in:
Peter Simons 2011-07-20 22:56:35 +00:00
parent efe5ab73b1
commit 0b1bf668cd

View File

@ -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