Skip to content

Add test coverage for git handler URL normalization #375

Closed

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

Activity

  1. added a commit that references this issue on Jun 11, 2026
    f3285c5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions