You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add test coverage for git handler URL normalization #375
Follow-up from #374 (Copilot review). The git handler at `src/handlers/git.js` has no automated test coverage — the recent #371 (CORS) and #373 (multi-slash) fixes were verified by hand with curl + a local boot.
Suggested coverage
`OPTIONS` preflight returns the canonical CORS headers (`Content-Type, Authorization, Git-Protocol`)
Single-slash `info/refs?service=git-upload-pack` → 200 with `application/x-git-upload-pack-advertisement`
Push (POST `git-receive-pack`) without auth → 401 with CORS headers
Push with auth → 200 (or 200 + receive-pack output)
Shape
Probably an integration test along the lines of `test/idp.test.js` — boot a temp `createServer({ git: true, public: true, root: tmpDir })`, init a bare repo at `tmpDir/repo.git`, hit it with `fetch`. Already a working pattern in this repo for HTTP-level tests.
Activity
test: git handler HTTP contract coverage + fix DATA_ROOT pollution in…
bump version to 0.0.207