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
This commit is contained in:
Lluís Batlle i Rossell 2009-11-08 01:51:20 +00:00
parent 0020559709
commit f1ee14bfaf
8 changed files with 4 additions and 14 deletions

View File

@ -4,7 +4,4 @@ rec {
hash="b5dfae5245b1b3934ca918831fbe9fa0bb7ae790c682b69f5ecc042cccf58894";
rev="1461ac760f79b8f153c8317c4534cb047a48331a";
url="git://github.com/Dieterbe/uzbl.git";
depth="50";
}

View File

@ -3,6 +3,4 @@
baseName = "uzbl-experimental";
method = "fetchgit";
rev = "origin/experimental";
extraVars = "depth";
eval_depth = "depth=50";
}

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
{stdenv, git}:
{url, rev ? "HEAD", md5 ? "", sha256 ? "", depth ? 1}:
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:
stdenv.mkDerivation {
name = "git-export";

View File

@ -4,5 +4,4 @@ rec {
hash="86e254d1aab17a66d7f5a83d93430b11dbeb95be1ee06f1d6a4c36219e4dfaf4";
rev="cd9caea74b8f90e8dded45a93a173f0f5c5aef25";
url="git://zen-kernel.org/kernel/zen-stable.git";
depth = "500";
}

View File

@ -4,6 +4,4 @@ rec {
hash="f5c86214424c8a7202c2dd9bbbd800561940af00800edb8afab080a73c185bca";
rev="66a44aa93959818bdb8153fea27b0992197ebc54";
url="git://zen-kernel.org/kernel/zen-stable.git";
depth = "500";
}

View File

@ -3,6 +3,4 @@
rev = "origin/master";
baseName = "zen-linux";
method = "fetchgit";
extraVars = "depth";
eval_depth = "depth=500";
}