summaryrefslogtreecommitdiff
path: root/workhorse/internal/git/upload-pack.go
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-28 12:09:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-28 12:09:06 +0000
commit77031895573384d40d631ac215ff2a99a4740094 (patch)
tree0aea73aaa1acf377a95beca7c5061264b204f33e /workhorse/internal/git/upload-pack.go
parent4a372de7753b16d254dc319a6bad08ecac0273af (diff)
downloadgitlab-ce-77031895573384d40d631ac215ff2a99a4740094.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/internal/git/upload-pack.go')
-rw-r--r--workhorse/internal/git/upload-pack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/git/upload-pack.go b/workhorse/internal/git/upload-pack.go
index acf03284343..74995fb61c8 100644
--- a/workhorse/internal/git/upload-pack.go
+++ b/workhorse/internal/git/upload-pack.go
@@ -46,11 +46,11 @@ func handleUploadPack(w *HttpResponseWriter, r *http.Request, a *api.Response) e
func handleUploadPackWithGitaly(ctx context.Context, a *api.Response, clientRequest io.Reader, clientResponse io.Writer, gitProtocol string) error {
ctx, smarthttp, err := gitaly.NewSmartHTTPClient(ctx, a.GitalyServer)
if err != nil {
- return fmt.Errorf("smarthttp.UploadPack: %v", err)
+ return fmt.Errorf("get gitaly client: %w", err)
}
if err := smarthttp.UploadPack(ctx, &a.Repository, clientRequest, clientResponse, gitConfigOptions(a), gitProtocol); err != nil {
- return fmt.Errorf("smarthttp.UploadPack: %v", err)
+ return fmt.Errorf("do gitaly call: %w", err)
}
return nil