diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 21:35:56 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 21:35:56 +0000 |
| commit | 457e296d90e2f7c2808e216f2ef0608b70f76553 (patch) | |
| tree | 8b6529cb9db3bb562842a4cfb0bf8c217ed7db1a /src/sync | |
| parent | 0550b3229f35ef3ee125bac47d85bbd08d1250b1 (diff) | |
Add Git protocol v2 support to fix modern git client compatibility
Modern git clients (2.51.0+) default to protocol v2 and send the
Git-Protocol header. The server must pass this to git processes via
the GIT_PROTOCOL environment variable for proper negotiation.
Changes:
- Extract Git-Protocol header in HTTP layer (src/http/mod.rs)
- Pass git_protocol parameter through all handler functions
- Set GIT_PROTOCOL env var when spawning git subprocesses
- Update all tests to pass None for backward compatibility
This fixes hangs/timeouts when modern git clients connect to the server.
Fixes issue discovered in work/2025-01-07-pr-clone-tag-sync-investigation.md
Diffstat (limited to 'src/sync')
0 files changed, 0 insertions, 0 deletions