Fix smart HTTP transport protocol handling

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 commit is contained in:
Vincent Tavernier 2023-04-05 23:04:50 +02:00 committed by Vincent Tavernier
parent 4b14d29c20
commit ea1a74626e
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func (t *httpSmartSubtransport) Action(url string, action SmartServiceAction) (S
req, err = http.NewRequest("GET", url+"/info/refs?service=git-receive-pack", nil)
case SmartServiceActionReceivepack:
req, err = http.NewRequest("POST", url+"/info/refs?service=git-upload-pack", nil)
req, err = http.NewRequest("POST", url+"/git-receive-pack", nil)
if err != nil {
break
}