aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/ssh
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-01-04 11:18:41 +0100
committerGitHub <noreply@github.com>2017-01-04 11:18:41 +0100
commit841abfb7dc640755c443432064252907e3e55c95 (patch)
tree8af69dcd3b301a10a3e493e2cd805cdec6dcaecd /plumbing/transport/ssh
parent90d67bb648ae32d5b1a0f7b1af011da6dfb24315 (diff)
downloadgo-git-841abfb7dc640755c443432064252907e3e55c95.tar.gz
server: add git server implementation (#190)
* server: add generic server implementation (transport-independent), both for git-upload-pack and git-receive-pack. * server: move internal functions to internal/common. * cli: add git-receive-pack and git-upload-pack implementations. * format/packfile: add UpdateObjectStorage function, extracted from Remote. * transport: implement tranport RPC-like, only with git-upload-pack and git-receive-pack methods. Client renamed to Transport. * storer: add storer.Storer interface. * protocol/packp: add UploadPackResponse constructor with packfile. * protocol/packp: fix UploadPackResponse encoding, add tests. * protocol/packp/capability: implement All.
Diffstat (limited to 'plumbing/transport/ssh')
-rw-r--r--plumbing/transport/ssh/upload_pack_test.go (renamed from plumbing/transport/ssh/fetch_pack_test.go)16
1 files changed, 8 insertions, 8 deletions
diff --git a/plumbing/transport/ssh/fetch_pack_test.go b/plumbing/transport/ssh/upload_pack_test.go
index 927e9a8..8194770 100644
--- a/plumbing/transport/ssh/fetch_pack_test.go
+++ b/plumbing/transport/ssh/upload_pack_test.go
@@ -9,29 +9,29 @@ import (
. "gopkg.in/check.v1"
)
-type FetchPackSuite struct {
- test.FetchPackSuite
+type UploadPackSuite struct {
+ test.UploadPackSuite
}
-var _ = Suite(&FetchPackSuite{})
+var _ = Suite(&UploadPackSuite{})
-func (s *FetchPackSuite) SetUpSuite(c *C) {
+func (s *UploadPackSuite) SetUpSuite(c *C) {
if os.Getenv("SSH_AUTH_SOCK") == "" {
c.Skip("SSH_AUTH_SOCK is not set")
}
- s.FetchPackSuite.Client = DefaultClient
+ s.UploadPackSuite.Client = DefaultClient
ep, err := transport.NewEndpoint("git@github.com:git-fixtures/basic.git")
c.Assert(err, IsNil)
- s.FetchPackSuite.Endpoint = ep
+ s.UploadPackSuite.Endpoint = ep
ep, err = transport.NewEndpoint("git@github.com:git-fixtures/empty.git")
c.Assert(err, IsNil)
- s.FetchPackSuite.EmptyEndpoint = ep
+ s.UploadPackSuite.EmptyEndpoint = ep
ep, err = transport.NewEndpoint("git@github.com:git-fixtures/non-existent.git")
c.Assert(err, IsNil)
- s.FetchPackSuite.NonExistentEndpoint = ep
+ s.UploadPackSuite.NonExistentEndpoint = ep
}