diff options
author | Manuel Carmona <manu.carmona90@gmail.com> | 2017-08-18 10:59:57 +0200 |
---|---|---|
committer | Manuel Carmona <manu.carmona90@gmail.com> | 2017-08-18 11:04:07 +0200 |
commit | af398e5e724a467f59949db0ea7803607f5858b5 (patch) | |
tree | 9fb757cf0e7e748ad58db21f69a93e966b249b9e /plumbing/protocol/packp/advrefs_encode_test.go | |
parent | 118a8c732202ccdfe682d72bc1a6f79e35d71dd7 (diff) | |
download | go-git-af398e5e724a467f59949db0ea7803607f5858b5.tar.gz |
packp: fixed encoding when HEAD is not a valid ref
Diffstat (limited to 'plumbing/protocol/packp/advrefs_encode_test.go')
-rw-r--r-- | plumbing/protocol/packp/advrefs_encode_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plumbing/protocol/packp/advrefs_encode_test.go b/plumbing/protocol/packp/advrefs_encode_test.go index f901440..3ae84a7 100644 --- a/plumbing/protocol/packp/advrefs_encode_test.go +++ b/plumbing/protocol/packp/advrefs_encode_test.go @@ -99,8 +99,7 @@ func (s *AdvRefsEncodeSuite) TestRefs(c *C) { } expected := pktlines(c, - "0000000000000000000000000000000000000000 capabilities^{}\x00\n", - "a6930aaee06755d1bdcfd943fbf614e4d92bb0c7 refs/heads/master\n", + "a6930aaee06755d1bdcfd943fbf614e4d92bb0c7 refs/heads/master\x00\n", "5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11-tree\n", "1111111111111111111111111111111111111111 refs/tags/v2.6.12-tree\n", "2222222222222222222222222222222222222222 refs/tags/v2.6.13-tree\n", @@ -129,8 +128,7 @@ func (s *AdvRefsEncodeSuite) TestPeeled(c *C) { } expected := pktlines(c, - "0000000000000000000000000000000000000000 capabilities^{}\x00\n", - "a6930aaee06755d1bdcfd943fbf614e4d92bb0c7 refs/heads/master\n", + "a6930aaee06755d1bdcfd943fbf614e4d92bb0c7 refs/heads/master\x00\n", "5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8c refs/tags/v2.6.11-tree\n", "1111111111111111111111111111111111111111 refs/tags/v2.6.12-tree\n", "5555555555555555555555555555555555555555 refs/tags/v2.6.12-tree^{}\n", |