diff options
author | Santiago M. Mola <santi@mola.io> | 2016-12-06 11:36:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 11:36:38 +0100 |
commit | 4b5849db76905830e0124b6b9f4294ee13308e0f (patch) | |
tree | bb1761de5af4f442fae36d72ac5d0be941188c05 /plumbing/protocol/packp/advrefs_decode_test.go | |
parent | 11735c3b3aaa8f789dc10739a4de7ad438196000 (diff) | |
download | go-git-4b5849db76905830e0124b6b9f4294ee13308e0f.tar.gz |
transport/internal: error handling fixes and clean up (#160)
* protocol/packp: remove redundant isFlush check on AdvRefs.
* protocol/packp: improve AdvRefs documentation.
* transport: improve error handling for non-existing repos.
* protocol/packp: AdvRefs Decode now returns different errors for
empty, but syntactically correct, AdvRefs message (ErrEmptyAdvRefs)
and empty input (ErrEmptyInput).
* transport/internal/common: read stderr only when needed (ErrEmptyInput).
Close the client gracefully.
* transport/internal/common: missing stderr on non existing repository
does not block.
* transport/internal/common: buffer error messages.
* transport/file: fix changing binary name, add tests.
* transport/file: support changing git-upload-pack and git-receive-pack
binary names.
* transport/file: add tests for misbehaving servers.
* transport/internal/common: remove Stderr field.
* transport/internal/common: do not close twice.
Diffstat (limited to 'plumbing/protocol/packp/advrefs_decode_test.go')
-rw-r--r-- | plumbing/protocol/packp/advrefs_decode_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/protocol/packp/advrefs_decode_test.go b/plumbing/protocol/packp/advrefs_decode_test.go index f807f15..2cc2568 100644 --- a/plumbing/protocol/packp/advrefs_decode_test.go +++ b/plumbing/protocol/packp/advrefs_decode_test.go @@ -19,7 +19,7 @@ var _ = Suite(&AdvRefsDecodeSuite{}) func (s *AdvRefsDecodeSuite) TestEmpty(c *C) { var buf bytes.Buffer ar := NewAdvRefs() - c.Assert(ar.Decode(&buf), Equals, ErrEmptyAdvRefs) + c.Assert(ar.Decode(&buf), Equals, ErrEmptyInput) } func (s *AdvRefsDecodeSuite) TestEmptyFlush(c *C) { |