2009-06-24 05:48:01 -07:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
header "exporting $url (rev $rev) into $out"
|
|
|
|
|
2009-11-07 17:51:20 -08:00
|
|
|
git clone "$url" $out
|
2009-06-24 05:48:01 -07:00
|
|
|
if test -n "$rev"; then
|
|
|
|
cd $out
|
|
|
|
git checkout $rev
|
|
|
|
fi
|
|
|
|
|
2010-01-27 04:12:35 -08:00
|
|
|
if test -z "$leaveDotGit"; then
|
|
|
|
find $out -name .git\* | xargs rm -rf
|
|
|
|
fi
|
2009-06-24 05:48:01 -07:00
|
|
|
|
2010-01-27 04:12:35 -08:00
|
|
|
stopNest
|