nixpkgs/pkgs/build-support/fetchgit/builder.sh
Lluís Batlle i Rossell f1ee14bfaf 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
2009-11-08 01:51:20 +00:00

14 lines
196 B
Bash

source $stdenv/setup
header "exporting $url (rev $rev) into $out"
git clone "$url" $out
if test -n "$rev"; then
cd $out
git checkout $rev
fi
find $out -name .git\* | xargs rm -rf
stopNest