From 3124661215a4971993bcb5c98297b55c62eeb3ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 18 Nov 2009 16:24:31 +0000 Subject: [PATCH] nix-prefetch-git: Remove `--depth' argument since it's risky. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkgs/build-support/fetchgit/nix-prefetch-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 3803522ea76..88d2421003b 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -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