Fix smart HTTP transport protocol handling #952
Loading…
Reference in New Issue
No description provided.
Delete Branch "alixinne/patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This fixes the smart HTTP transport implementation receive pack service to send requests to
/git-receive-pack
instead of/info/Refs?service=git-upload-pack
.This issue seems to stem from a bad copy-paste, because this was the only difference when comparing the traces of a git push done with
git2go
with the regulargit
client.In case of a HTTPS push, it would before result in a
HTTP 405 Method Not Allowed
(at least on the Gitea instance I was testing it on), and it now works.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.