diff options
author | Peter Simons <simons@cryp.to> | 2011-07-20 22:56:35 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2011-07-20 22:56:35 +0000 |
commit | 0b1bf668cdb55637481c7788bdb3e2cd27376d5b (patch) | |
tree | 3c1364369530c952994f808d6ca2dc7f5c0266d9 /pkgs/build-support/fetchgit/builder.sh | |
parent | efe5ab73b19c0c8c769afa9433db2d8f90840360 (diff) | |
download | nixlib-0b1bf668cdb55637481c7788bdb3e2cd27376d5b.tar nixlib-0b1bf668cdb55637481c7788bdb3e2cd27376d5b.tar.gz nixlib-0b1bf668cdb55637481c7788bdb3e2cd27376d5b.tar.bz2 nixlib-0b1bf668cdb55637481c7788bdb3e2cd27376d5b.tar.lz nixlib-0b1bf668cdb55637481c7788bdb3e2cd27376d5b.tar.xz nixlib-0b1bf668cdb55637481c7788bdb3e2cd27376d5b.tar.zst nixlib-0b1bf668cdb55637481c7788bdb3e2cd27376d5b.zip |
fetchgit: added support for fetching sub-modules
svn path=/nixpkgs/trunk/; revision=27860
Diffstat (limited to 'pkgs/build-support/fetchgit/builder.sh')
-rw-r--r-- | pkgs/build-support/fetchgit/builder.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |