Skip to content

Add test coverage for git handler URL normalization #375

Description

@melvincarvalho

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

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.

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions