2009-06-24 14:48:01 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
header "exporting $url (rev $rev) into $out"
|
|
|
|
|
2009-06-26 02:56:54 +02:00
|
|
|
git clone --depth 1 "$url" $out
|
2009-06-24 14:48:01 +02:00
|
|
|
if test -n "$rev"; then
|
|
|
|
cd $out
|
|
|
|
git checkout $rev
|
|
|
|
fi
|
|
|
|
find $out -name .git\* | xargs rm -rf
|
|
|
|
|
|
|
|
stopNest
|
|
|
|
|