summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-08-02 20:29:54 -0400
committerMalfurious <m@lfurio.us>2022-08-02 20:29:54 -0400
commit246aeeda471d69d52322d5d1276dbf41e1dd59db (patch)
treec0a45286f9ecf9fd89ff40008644e0a0e690a2a6
parent84ae51375c7a491e118ae2674006dd1778416992 (diff)
downloadsrcnode-246aeeda471d69d52322d5d1276dbf41e1dd59db.tar.gz
srcnode-246aeeda471d69d52322d5d1276dbf41e1dd59db.zip
Add gitolite gitconfig file
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--conf/.gitconfig6
-rw-r--r--docker/Dockerfile.gitolite1
2 files changed, 7 insertions, 0 deletions
diff --git a/conf/.gitconfig b/conf/.gitconfig
new file mode 100644
index 0000000..a998fec
--- /dev/null
+++ b/conf/.gitconfig
@@ -0,0 +1,6 @@
+[init]
+ defaultBranch = master
+[user]
+ useConfigOnly = true
+ name = gitolite
+ email = gitolite
diff --git a/docker/Dockerfile.gitolite b/docker/Dockerfile.gitolite
index c6f2f43..0cccaf1 100644
--- a/docker/Dockerfile.gitolite
+++ b/docker/Dockerfile.gitolite
@@ -15,6 +15,7 @@ RUN pacman -Syu --needed --noconfirm gitolite
COPY $pubkey /
RUN runuser -u gitolite -- gitolite setup -pk /$pubkey
RUN runuser -u gitolite -- ln -sf .gitolite/conf/.gitolite.rc /var/lib/gitolite
+RUN runuser -u gitolite -- ln -sf .gitolite/conf/.gitconfig /var/lib/gitolite
VOLUME /var/lib/gitolite
# sshd host keys are stored in a volume so that rebuilding/updating the