diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
