Update SmartServiceActionReceivepack request path
Similar to SmartServiceActionUploadpack, SmartServiceActionReceivepack is not an info endpoint. Fix the path for git-receive-pack.
This commit is contained in:
parent
3d4b9b97d1
commit
5bd7c33e5d
2
http.go
2
http.go
|
@ -110,7 +110,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-receive-pack", nil)
|
||||
req, err = http.NewRequest("POST", url+"/git-receive-pack", nil)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue