aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgs/populate/src/sh.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/populate/src/sh.rs b/pkgs/populate/src/sh.rs
index 1f27b6b..52d41ac 100644
--- a/pkgs/populate/src/sh.rs
+++ b/pkgs/populate/src/sh.rs
@@ -515,7 +515,9 @@ deliver_git() {
if ! test -e "$path"; then
changed=1
if test -n "$shallow"; then
- git init "$path"
+ # With a name for the initial branch, so Git doesn't advise to choose
+ # one.
+ git -c init.defaultBranch=master init "$path"
else
git clone --recurse-submodules -- "$url" "$path"
fi