From a1585e0c26fe78d675c9ef2cace389fd4aeca9cc Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 5 Dec 2025 22:40:48 -0800 Subject: Fix description flags --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Dockerfile') 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 -- cgit v1.2.3-70-g09d2