diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 17:36:44 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 17:36:44 +0000 |
| commit | e7c18cf2a96b1f45e5f21a83ee1fe2e18a6dc7e2 (patch) | |
| tree | d0f6b3af68841658e7f1338990651aaf841fc469 /docs/explanation/unify-git-data-sync.md | |
| parent | 42bf1196003c0b39179d8c9d2c07ecf9a83a4a74 (diff) | |
test: add SimpleGitServer helper for dumb HTTP git serving
Add a test helper that serves git repositories over HTTP using git's
dumb HTTP protocol. This enables integration tests that need to fetch
git data from an external URL without requiring a full git HTTP backend.
Features:
- Creates bare clone of source repository
- Runs git update-server-info to generate required metadata
- Serves static files over HTTP using hyper
- Automatic cleanup on drop
- Path traversal protection
Tests included:
- Server starts and stops correctly
- info/refs endpoint is accessible
- git ls-remote works against server
- git fetch works against server
- Path traversal is blocked
This helper will be used in Phase 3 to test PR clone tag sync,
where the PR event's clone URL points to an external git server
that is NOT an ngit-grasp relay.
Diffstat (limited to 'docs/explanation/unify-git-data-sync.md')
0 files changed, 0 insertions, 0 deletions