From f5c5102fc89ce7f5c8b0e5822d2b953fd413edbe Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 1 Mar 2026 22:16:25 -0800 Subject: [PATCH] Use `git init --bare -b main` directly --- scripts/deploy.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 8b6e956..2e20b09 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -40,8 +40,7 @@ for app_dir in "$DEST"/apps/*/; do bare="$REPOS_DIR/$app.git" if [ ! -d "$bare" ]; then - git init --bare "$bare" > /dev/null - git -C "$bare" symbolic-ref HEAD refs/heads/main + git init --bare -b main "$bare" > /dev/null git -C "$bare" config http.receivepack true fi