summaryrefslogtreecommitdiff
path: root/pkgs/build-support/fetchgit/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/fetchgit/builder.sh')
-rw-r--r--pkgs/build-support/fetchgit/builder.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/builder.sh b/pkgs/build-support/fetchgit/builder.sh
index 819b0127a852..393d0a57d163 100644
--- a/pkgs/build-support/fetchgit/builder.sh
+++ b/pkgs/build-support/fetchgit/builder.sh
@@ -16,6 +16,7 @@ $SHELL $fetcher --builder --url "$url" --out "$out" --rev "$rev" --name "$name"
${fetchTags:+--fetch-tags} \
${sparseCheckout:+--sparse-checkout "$sparseCheckout"} \
${nonConeMode:+--non-cone-mode} \
- ${branchName:+--branch-name "$branchName"}
+ ${branchName:+--branch-name "$branchName"} \
+ ${rootDir:+--root-dir "$rootDir"}
runHook postFetch