2011-06-22 20:34:27 +01: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-22 22:01:36 +01:00
|
|
|
# - revision specified and remote without HEAD
|
2009-06-24 13:48:01 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
header "exporting $url (rev $rev) into $out"
|
|
|
|
|
2013-12-21 12:48:06 +00:00
|
|
|
$SHELL $fetcher --builder --url "$url" --out "$out" --rev "$rev" \
|
2014-03-23 16:19:39 +00:00
|
|
|
${leaveDotGit:+--leave-dotGit} \
|
2015-03-10 11:40:19 +00:00
|
|
|
${deepClone:+--deepClone} \
|
2015-04-20 13:25:14 +01:00
|
|
|
${fetchSubmodules:+--fetch-submodules} \
|
|
|
|
${branchName:+--branch-name "$branchName"}
|
2009-06-24 13:48:01 +01:00
|
|
|
|
2017-06-03 19:45:51 +01:00
|
|
|
runHook postFetch
|
2010-01-27 12:12:35 +00:00
|
|
|
stopNest
|