mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
f1ee14bfaf
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
14 lines
196 B
Bash
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
|
|
|