Skip to content

Allow fetching imported commits before any branches exist - #259

Merged
nishu-builder merged 1 commit into
codex/git-pack-capacity-20260918-911f8baefrom
codex/git-fetch-by-hash-20260918-911f8bae
Sep 18, 2026
Merged

nishu-builder merged 1 commit into
codex/git-pack-capacity-20260918-911f8baefrom
codex/git-fetch-by-hash-20260918-911f8bae

Conversation

@nishu-builder

@nishu-builder nishu-builder commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

CAOS imports commits without creating branch refs. Clients need to fetch those commits by hash even before the server has any advertised refs.

Previously, the HTTP server dropped the client’s Git-Protocol header. That prevented Git protocol v2 negotiation and broke fetching by hash in this case.

This PR forwards the header to git http-backend as HTTP_GIT_PROTOCOL, so Git can use the protocol the client requested.

@nishu-builder
nishu-builder added this pull request to stack #257 September 18, 2026 10:52
@nishu-builder
nishu-builder removed this pull request from stack #257 September 18, 2026 10:53
@nishu-builder
nishu-builder added this pull request to stack #261 September 18, 2026 10:53
@nishu-builder
nishu-builder force-pushed the codex/git-fetch-by-hash-20260918-911f8bae branch from 566d4c9 to 4b5afb8 Compare September 18, 2026 19:52
@nishu-builder
nishu-builder merged commit 56074aa into main Sep 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant