diff options
author | paul.t <paul.t@gembaadvantage.com> | 2021-12-15 06:32:38 +0000 |
---|---|---|
committer | paul.t <paul.t@gembaadvantage.com> | 2021-12-15 06:32:38 +0000 |
commit | 8d923a6fb77d7916da2df33e5a65e038cceef4e1 (patch) | |
tree | 5a823fa6e7ffd5e38df105cadcab5a0d6b7475e9 /plumbing/transport | |
parent | b0f5eb894deb6d6a1051d697f0809082abfad395 (diff) | |
parent | 53a714bdc90026135e2f2ada1c4d6c925b2733cd (diff) | |
download | go-git-8d923a6fb77d7916da2df33e5a65e038cceef4e1.tar.gz |
Merge branch 'master' into codecommit-ref-delta
Diffstat (limited to 'plumbing/transport')
-rw-r--r-- | plumbing/transport/client/client_test.go | 5 | ||||
-rw-r--r-- | plumbing/transport/internal/common/common.go | 5 | ||||
-rw-r--r-- | plumbing/transport/ssh/common_test.go | 3 |
3 files changed, 1 insertions, 12 deletions
diff --git a/plumbing/transport/client/client_test.go b/plumbing/transport/client/client_test.go index 9ebe113..92db525 100644 --- a/plumbing/transport/client/client_test.go +++ b/plumbing/transport/client/client_test.go @@ -1,7 +1,6 @@ package client import ( - "fmt" "net/http" "testing" @@ -68,7 +67,3 @@ func (*dummyClient) NewReceivePackSession(*transport.Endpoint, transport.AuthMet transport.ReceivePackSession, error) { return nil, nil } - -func typeAsString(v interface{}) string { - return fmt.Sprintf("%T", v) -} diff --git a/plumbing/transport/internal/common/common.go b/plumbing/transport/internal/common/common.go index fdb148f..d0e9a29 100644 --- a/plumbing/transport/internal/common/common.go +++ b/plumbing/transport/internal/common/common.go @@ -428,11 +428,6 @@ func isRepoNotFoundError(s string) bool { return false } -var ( - nak = []byte("NAK") - eol = []byte("\n") -) - // uploadPack implements the git-upload-pack protocol. func uploadPack(w io.WriteCloser, r io.Reader, req *packp.UploadPackRequest) error { // TODO support multi_ack mode diff --git a/plumbing/transport/ssh/common_test.go b/plumbing/transport/ssh/common_test.go index e04a9c5..6d634d5 100644 --- a/plumbing/transport/ssh/common_test.go +++ b/plumbing/transport/ssh/common_test.go @@ -7,7 +7,6 @@ import ( "github.com/kevinburke/ssh_config" "golang.org/x/crypto/ssh" - stdssh "golang.org/x/crypto/ssh" . "gopkg.in/check.v1" ) @@ -99,7 +98,7 @@ func (s *SuiteCommon) TestIssue70(c *C) { uploadPack.SetUpSuite(c) config := &ssh.ClientConfig{ - HostKeyCallback: stdssh.InsecureIgnoreHostKey(), + HostKeyCallback: ssh.InsecureIgnoreHostKey(), } r := &runner{ config: config, |