From dcdcb7e9605fc84cb0df0105fecd3ecb896fcd42 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 10 Jan 2026 15:49:36 +0200 Subject: Add git safe.directory config for NFS repository ownership Fixes 'dubious ownership' error when git-http-backend runs as UID 33 accessing repository owned by UID 1001:33 --- f3s/git-server/helm-chart/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index 9b643ee..10b750b 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -101,6 +101,9 @@ spec: command: ["/bin/sh", "-c"] args: - | + # Add git safe.directory exception for repository ownership + git config --global --add safe.directory /repos/repos/conf.git + # Configure git repository for HTTP access git config --file /repos/repos/conf.git/config http.receivepack true git config --file /repos/repos/conf.git/config http.uploadpack true -- cgit v1.2.3