summaryrefslogtreecommitdiff
path: root/f3s/git-server/helm-chart/README.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-10 20:28:47 +0200
committerPaul Buetow <paul@buetow.org>2026-01-10 20:28:47 +0200
commitcb3829b84863e60f999fcbac240c320792d87bf5 (patch)
tree6c330bade85fdf0cef360b9f86650eba95c27d84 /f3s/git-server/helm-chart/README.md
parent90abde069fac1f5d4741ff1773462ff5d5f6916e (diff)
Simplify git-server path from /repos/repos to /repos
Changes: - Mount PVC with subPath: repos in deployment - Update cgit scan-path from /repos/repos to /repos - Update git-http-backend GIT_PROJECT_ROOT to /repos - Update all documentation to reflect simplified paths This eliminates the redundant /repos/repos duplication and simplifies all git URLs to ssh://git@r0:30022/repos/<repo>.git format. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/git-server/helm-chart/README.md')
-rw-r--r--f3s/git-server/helm-chart/README.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/f3s/git-server/helm-chart/README.md b/f3s/git-server/helm-chart/README.md
index 52a3d12..9d508e5 100644
--- a/f3s/git-server/helm-chart/README.md
+++ b/f3s/git-server/helm-chart/README.md
@@ -45,10 +45,10 @@ Repository structure:
**External** (from your workstation):
```bash
# Via SSH config alias
-git clone git-server:/repos/repos/<repo>.git
+git clone git-server:/repos/<repo>.git
# Or directly
-git clone ssh://git@r0:30022/repos/repos/<repo>.git
+git clone ssh://git@r0:30022/repos/<repo>.git
```
**SSH Configuration** (`~/.ssh/config`):
@@ -107,14 +107,14 @@ Gitsyncer syncs repositories from Codeberg/GitHub to the self-hosted git-server
"name": "snonux"
},
{
- "host": "ssh://git@r0:30022/repos/repos",
+ "host": "ssh://git@r0:30022/repos",
"backupLocation": true
}
]
}
```
-**Note**: The config uses explicit NodePort (30022) on cluster node r0. You could also use an SSH alias (see below) with `git@git-server:/repos/repos` for shorter syntax.
+**Note**: The config uses explicit NodePort (30022) on cluster node r0. You could also use an SSH alias (see below) with `git@git-server:/repos` for shorter syntax.
### SSH Config for Gitsyncer (Optional)
@@ -208,7 +208,7 @@ spec:
# Change from SSH to HTTP
kubectl edit application <app-name> -n cicd
-# Old: ssh://git@git-server.cicd.svc.cluster.local/repos/repos/conf.git
+# Old: ssh://git@git-server.cicd.svc.cluster.local/repos/conf.git
# New: http://git-server.cicd.svc.cluster.local/conf.git
```
@@ -324,7 +324,7 @@ kubectl logs -n cicd -l app=git-server -c cgit --tail=50
# Common error: "fatal: detected dubious ownership"
# Already fixed in deployment with:
-# git config --global --add safe.directory /repos/repos/<repo>.git
+# git config --global --add safe.directory /repos/<repo>.git
# HOME=/tmp (for cgit container)
```
@@ -332,14 +332,14 @@ kubectl logs -n cicd -l app=git-server -c cgit --tail=50
**Symptom**: Repository exists but doesn't show in web UI
-**Cause**: cgit scans `/repos/repos/` directory
+**Cause**: cgit scans `/repos/` directory
**Verify**:
```bash
# Check scan-path in cgit config
kubectl get configmap cgit-config -n cicd -o yaml
-# Should show: scan-path=/repos/repos
+# Should show: scan-path=/repos
```
**Fix**: Restart cgit container
@@ -375,7 +375,7 @@ kubectl exec -n cicd -c git-server $(kubectl get pod -n cicd -l app=git-server -
**Symptom**:
```
-fatal: unrecognized command 'mkdir -p repos/repos/<repo>.git && cd repos/repos/<repo>.git && git init --bare'
+fatal: unrecognized command 'mkdir -p repos/<repo>.git && cd repos/<repo>.git && git init --bare'
```
**Cause**: git-shell restricts available commands (security feature)