fetchgit: added support for fetching sub-modules
svn path=/nixpkgs/trunk/; revision=27860
This commit is contained in:
parent
efe5ab73b1
commit
0b1bf668cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user