summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-12-05 22:40:48 -0800
committerElizabeth Hunt <me@liz.coffee>2025-12-05 22:40:48 -0800
commita1585e0c26fe78d675c9ef2cace389fd4aeca9cc (patch)
treef3873e1c035e014e3d84e5af23025aa682192949 /Dockerfile
parent8667f8615da479a8e9c4e8d5bb5987632d75bfaf (diff)
downloadwwwgit-a1585e0c26fe78d675c9ef2cace389fd4aeca9cc.tar.gz
wwwgit-a1585e0c26fe78d675c9ef2cace389fd4aeca9cc.zip
Fix description flags
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index ecb4743..6a79434 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -53,6 +53,9 @@ RUN mkdir -p /var/lib/git/repositories
RUN useradd -m -d /var/lib/git/repositories -s /usr/bin/git-shell code
+# Set default branch to main for the code user
+RUN git config --system init.defaultBranch main
+
# Store git-shell-commands in a persistent location (will be copied to home on startup)
RUN mkdir -p /usr/local/share/git-shell-commands
COPY init-repo /usr/local/share/git-shell-commands/init-repo