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:
parent
eb9ff07031
commit
3124661215
@ -36,7 +36,7 @@ if test -z "$finalPath"; then
|
|||||||
trap "rm -rf $tmpPath" EXIT
|
trap "rm -rf $tmpPath" EXIT
|
||||||
|
|
||||||
# Perform the checkout.
|
# Perform the checkout.
|
||||||
git clone --depth 1 "$url" $tmpFile 1>&2
|
git clone "$url" $tmpFile 1>&2
|
||||||
if test -n "$rev"; then
|
if test -n "$rev"; then
|
||||||
cd $tmpFile
|
cd $tmpFile
|
||||||
echo $tmpFile
|
echo $tmpFile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user