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:
parent
4b14d29c20
commit
ea1a74626e
2
http.go
2
http.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue