From 99f1956fb0c1d7853cfca05630d5f895b60a776f Mon Sep 17 00:00:00 2001 From: risk danger olson Date: Tue, 1 Sep 2015 16:05:54 -0600 Subject: [PATCH] make the ssh auth call with the correct operation --- lfs/client.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lfs/client.go b/lfs/client.go index 4ae02b9e..1cbe66e4 100644 --- a/lfs/client.go +++ b/lfs/client.go @@ -184,7 +184,7 @@ func Batch(objects []*objectResource, operation string) ([]*objectResource, erro return nil, Error(err) } - req, err := newBatchApiRequest() + req, err := newBatchApiRequest(operation) if err != nil { return nil, Error(err) } @@ -613,13 +613,13 @@ func newClientRequest(method, rawurl string, header map[string]string) (*http.Re return req, nil } -func newBatchApiRequest() (*http.Request, error) { +func newBatchApiRequest(operation string) (*http.Request, error) { endpoint := Config.Endpoint() - res, err := sshAuthenticate(endpoint, "download", "") + res, err := sshAuthenticate(endpoint, operation, "") if err != nil { - tracerx.Printf("ssh: attempted with %s. Error: %s", - endpoint.SshUserAndHost, err.Error(), + tracerx.Printf("ssh: %s attempted with %s. Error: %s", + operation, endpoint.SshUserAndHost, err.Error(), ) }