diff options
author | Marc Weber <marco-oweber@gmx.de> | 2009-06-26 00:56:54 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2009-06-26 00:56:54 +0000 |
commit | c59fb90f629ef7b143fe01fabf32c1a0c4908b18 (patch) | |
tree | 1f91a1bfbeea75c6d3aaa1a212e120614b1b2038 /pkgs/build-support/fetchgit/builder.sh | |
parent | 6c0912ee9ce1558bfebcd73a08c6bb8ae42e4676 (diff) | |
download | nixlib-c59fb90f629ef7b143fe01fabf32c1a0c4908b18.tar nixlib-c59fb90f629ef7b143fe01fabf32c1a0c4908b18.tar.gz nixlib-c59fb90f629ef7b143fe01fabf32c1a0c4908b18.tar.bz2 nixlib-c59fb90f629ef7b143fe01fabf32c1a0c4908b18.tar.lz nixlib-c59fb90f629ef7b143fe01fabf32c1a0c4908b18.tar.xz nixlib-c59fb90f629ef7b143fe01fabf32c1a0c4908b18.tar.zst nixlib-c59fb90f629ef7b143fe01fabf32c1a0c4908b18.zip |
make fetchgit and nix-prefetch-git use --depth 1 to receive only a shallow clone cutting history
svn path=/nixpkgs/trunk/; revision=16047
Diffstat (limited to 'pkgs/build-support/fetchgit/builder.sh')
-rw-r--r-- | pkgs/build-support/fetchgit/builder.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/builder.sh b/pkgs/build-support/fetchgit/builder.sh index 08a1cc5d3419..e43a2e37726c 100644 --- a/pkgs/build-support/fetchgit/builder.sh +++ b/pkgs/build-support/fetchgit/builder.sh @@ -2,7 +2,7 @@ source $stdenv/setup header "exporting $url (rev $rev) into $out" -git clone "$url" $out +git clone --depth 1 "$url" $out if test -n "$rev"; then cd $out git checkout $rev |