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:
Sunny 2021-11-29 01:49:12 +05:30
parent 3d4b9b97d1
commit 5bd7c33e5d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}