2011-06-22 23:34:27 +04:00
|
|
|
# tested so far with:
|
|
|
|
# - no revision specified and remote has a HEAD which is used
|
|
|
|
# - revision specified and remote has a HEAD
|
2011-06-23 01:01:36 +04:00
|
|
|
# - revision specified and remote without HEAD
|
2009-06-24 16:48:01 +04:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
header "exporting $url (rev $rev) into $out"
|
|
|
|
|
2013-12-21 16:48:06 +04:00
|
|
|
$SHELL $fetcher --builder --url "$url" --out "$out" --rev "$rev" \
|
2014-03-23 20:19:39 +04:00
|
|
|
${leaveDotGit:+--leave-dotGit} \
|
2015-03-10 14:40:19 +03:00
|
|
|
${deepClone:+--deepClone} \
|
2015-04-20 15:25:14 +03:00
|
|
|
${fetchSubmodules:+--fetch-submodules} \
|
|
|
|
${branchName:+--branch-name "$branchName"}
|
2009-06-24 16:48:01 +04:00
|
|
|
|
2010-01-27 15:12:35 +03:00
|
|
|
stopNest
|