summaryrefslogtreecommitdiff
path: root/f3s/git-server/helm-chart/templates
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-10 15:49:36 +0200
committerPaul Buetow <paul@buetow.org>2026-01-10 15:49:36 +0200
commitdcdcb7e9605fc84cb0df0105fecd3ecb896fcd42 (patch)
tree232fb46ee577638d5ca41d041d003c3701e63b46 /f3s/git-server/helm-chart/templates
parent860b01b8b8b0c5a1c5c0125b1123c1c6cc5e4827 (diff)
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
Diffstat (limited to 'f3s/git-server/helm-chart/templates')
-rw-r--r--f3s/git-server/helm-chart/templates/deployment.yaml3
1 files changed, 3 insertions, 0 deletions
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