2020-04-24 23:36:52 +00:00
|
|
|
# tested so far with:
|
|
|
|
# - no revision specified and remote has a HEAD which is used
|
|
|
|
# - revision specified and remote has a HEAD
|
|
|
|
# - revision specified and remote without HEAD
|
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
header "exporting $url (rev $rev) into $out"
|
|
|
|
|
|
|
|
$SHELL $fetcher --builder --url "$url" --out "$out" --rev "$rev" \
|
|
|
|
${leaveDotGit:+--leave-dotGit} \
|
2021-01-15 22:18:51 +00:00
|
|
|
${fetchLFS:+--fetch-lfs} \
|
2020-04-24 23:36:52 +00:00
|
|
|
${deepClone:+--deepClone} \
|
|
|
|
${fetchSubmodules:+--fetch-submodules} \
|
2022-01-26 04:04:25 +00:00
|
|
|
${sparseCheckout:+--sparse-checkout "$sparseCheckout"} \
|
2022-08-21 13:32:41 +00:00
|
|
|
${nonConeMode:+--non-cone-mode} \
|
2020-04-24 23:36:52 +00:00
|
|
|
${branchName:+--branch-name "$branchName"}
|
|
|
|
|
|
|
|
runHook postFetch
|
|
|
|
stopNest
|