nix-prefetch-git: Remove `--depth' argument since it's risky.

The `--depth' argument asks Git to fetch the last revisions of the given
repo on *any* branch, which is often useless.

Thanks to Lluís Battle for clarifying this.

svn path=/nixpkgs/trunk/; revision=18438
This commit is contained in:
Ludovic Courtès 2009-11-18 16:24:31 +00:00
parent eb9ff07031
commit 3124661215

View File

@ -36,7 +36,7 @@ if test -z "$finalPath"; then
trap "rm -rf $tmpPath" EXIT
# Perform the checkout.
git clone --depth 1 "$url" $tmpFile 1>&2
git clone "$url" $tmpFile 1>&2
if test -n "$rev"; then
cd $tmpFile
echo $tmpFile