diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 12:19:06 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 12:19:31 +0000 |
| commit | b13c6d924f7de5ff34405254b8bb21adf33c78c0 (patch) | |
| tree | 67f5205d0b01cf9677b8b21fb3dce97954e51e30 /src/git/authorization.rs | |
| parent | fd6b098f41baf8621551f15114c50891642b5872 (diff) | |
send auth rejection reason to git client via ERR pkt-line
Previously push auth failures returned HTTP 403 which git clients
display as a generic transport error. Now they return HTTP 200 with
an ERR pkt-line containing the rejection reason (e.g. 'authorisation
failed: No state events in purgatory'), which git displays directly.
Remove GitError::Unauthorized as it is no longer used. GitError
variants now represent only transport/infrastructure failures; app-level
rejections use ERR pkt-line responses.
Diffstat (limited to 'src/git/authorization.rs')
0 files changed, 0 insertions, 0 deletions