diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-11-08 01:51:20 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-11-08 01:51:20 +0000 |
commit | f1ee14bfaf3f0e3de03226e915ab7961b9034b58 (patch) | |
tree | 1c6e3a2af6813eaf6a4aa2ae662e96852ff97bb9 | |
parent | 00205597095260f4a031391cf0e7e04e7f8ab3d7 (diff) |
Removing fetchgit --depth and its usage. It does not provide much advantages...
I think it takes the recent N commits into the repository, which says very little, even for wanting master/HEAD. svn path=/nixpkgs/trunk/; revision=18277
8 files changed, 4 insertions, 14 deletions
diff --git a/pkgs/applications/networking/browsers/uzbl/src-for-experimental.nix b/pkgs/applications/networking/browsers/uzbl/src-for-experimental.nix index fadbd7d98b9c5..237a56aaa75cd 100644 --- a/pkgs/applications/networking/browsers/uzbl/src-for-experimental.nix +++ b/pkgs/applications/networking/browsers/uzbl/src-for-experimental.nix @@ -4,7 +4,4 @@ rec { hash="b5dfae5245b1b3934ca918831fbe9fa0bb7ae790c682b69f5ecc042cccf58894"; rev="1461ac760f79b8f153c8317c4534cb047a48331a"; url="git://github.com/Dieterbe/uzbl.git"; - - depth="50"; - } diff --git a/pkgs/applications/networking/browsers/uzbl/src-info-for-experimental.nix b/pkgs/applications/networking/browsers/uzbl/src-info-for-experimental.nix index f2004980d5999..60750f7b90bed 100644 --- a/pkgs/applications/networking/browsers/uzbl/src-info-for-experimental.nix +++ b/pkgs/applications/networking/browsers/uzbl/src-info-for-experimental.nix @@ -3,6 +3,4 @@ baseName = "uzbl-experimental"; method = "fetchgit"; rev = "origin/experimental"; - extraVars = "depth"; - eval_depth = "depth=50"; } diff --git a/pkgs/build-support/builder-defs/builder-defs.nix b/pkgs/build-support/builder-defs/builder-defs.nix index fe4b16374a3d2..814ce460794c4 100644 --- a/pkgs/build-support/builder-defs/builder-defs.nix +++ b/pkgs/build-support/builder-defs/builder-defs.nix @@ -546,11 +546,11 @@ let inherit (builtins) head tail trace; in sha256 = srcInfo.hash; }; - fetchGitFromSrcInfo = srcInfo: fetchgit ({ + fetchGitFromSrcInfo = srcInfo: fetchgit { url = srcInfo.url; rev = srcInfo.rev; sha256 = srcInfo.hash; - } // (if srcInfo ? depth then {inherit (srcInfo) depth;} else {})); + }; }) // args # [1]: rewrite using '' instead of " so that indentation gets stripped. It's diff --git a/pkgs/build-support/fetchgit/builder.sh b/pkgs/build-support/fetchgit/builder.sh index 83a3157b498f6..08a1cc5d34190 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 --depth "$depth" "$url" $out +git clone "$url" $out if test -n "$rev"; then cd $out git checkout $rev diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index b8517245d28b3..270125f5bd74a 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -1,5 +1,5 @@ {stdenv, git}: -{url, rev ? "HEAD", md5 ? "", sha256 ? "", depth ? 1}: +{url, rev ? "HEAD", md5 ? "", sha256 ? ""}: stdenv.mkDerivation { name = "git-export"; diff --git a/pkgs/os-specific/linux/zen-kernel/src-for-2.6.31-zen5.nix b/pkgs/os-specific/linux/zen-kernel/src-for-2.6.31-zen5.nix index 2d06b72980764..fed3b4555add3 100644 --- a/pkgs/os-specific/linux/zen-kernel/src-for-2.6.31-zen5.nix +++ b/pkgs/os-specific/linux/zen-kernel/src-for-2.6.31-zen5.nix @@ -4,5 +4,4 @@ rec { hash="86e254d1aab17a66d7f5a83d93430b11dbeb95be1ee06f1d6a4c36219e4dfaf4"; rev="cd9caea74b8f90e8dded45a93a173f0f5c5aef25"; url="git://zen-kernel.org/kernel/zen-stable.git"; - depth = "500"; } diff --git a/pkgs/os-specific/linux/zen-kernel/src-for-zen-stable.nix b/pkgs/os-specific/linux/zen-kernel/src-for-zen-stable.nix index 9db52a5904966..a3d7813755330 100644 --- a/pkgs/os-specific/linux/zen-kernel/src-for-zen-stable.nix +++ b/pkgs/os-specific/linux/zen-kernel/src-for-zen-stable.nix @@ -4,6 +4,4 @@ rec { hash="f5c86214424c8a7202c2dd9bbbd800561940af00800edb8afab080a73c185bca"; rev="66a44aa93959818bdb8153fea27b0992197ebc54"; url="git://zen-kernel.org/kernel/zen-stable.git"; - depth = "500"; - } diff --git a/pkgs/os-specific/linux/zen-kernel/src-info-for-zen-stable.nix b/pkgs/os-specific/linux/zen-kernel/src-info-for-zen-stable.nix index f19e47e35054e..e71297b146dbc 100644 --- a/pkgs/os-specific/linux/zen-kernel/src-info-for-zen-stable.nix +++ b/pkgs/os-specific/linux/zen-kernel/src-info-for-zen-stable.nix @@ -3,6 +3,4 @@ rev = "origin/master"; baseName = "zen-linux"; method = "fetchgit"; - extraVars = "depth"; - eval_depth = "depth=500"; } |