mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user