Skip to content

Commit

Permalink
Merge pull request #909 from sinbad/fix-ssh-error-fallthrough
Browse files Browse the repository at this point in the history
Fix fallthrough when git-lfs-authenticate returns an error
  • Loading branch information
technoweenie committed Dec 24, 2015
2 parents b5892fd + a79cb1c commit 2c77a36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lfs/client.go
Expand Up @@ -648,6 +648,7 @@ func newApiRequest(method, oid string) (*http.Request, error) {
tracerx.Printf("ssh: attempted with %s. Error: %s",
endpoint.SshUserAndHost, err.Error(),
)
return nil, err
}

if len(res.Href) > 0 {
Expand Down Expand Up @@ -691,6 +692,7 @@ func newBatchApiRequest(operation string) (*http.Request, error) {
tracerx.Printf("ssh: %s attempted with %s. Error: %s",
operation, endpoint.SshUserAndHost, err.Error(),
)
return nil, err
}

if len(res.Href) > 0 {
Expand Down

0 comments on commit 2c77a36

Please sign in to comment.