diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2022-01-08 14:22:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-08 14:22:48 +0100 |
commit | a5bbcd278ab1467bf9a8dfa615649b6c4d699119 (patch) | |
tree | 5fc41da16c024d40c33ebf2569e2c62717cb4a29 /plumbing/format/packfile/parser_test.go | |
parent | f0b111ab70e4e90013658b0835929b2083902017 (diff) | |
parent | bf57a4c6a53423d92aeeadf1bc02877cc80459d4 (diff) | |
download | go-git-a5bbcd278ab1467bf9a8dfa615649b6c4d699119.tar.gz |
pumbling: packfile, resolve external reference delta
fix: resolve external reference delta
Diffstat (limited to 'plumbing/format/packfile/parser_test.go')
-rw-r--r-- | plumbing/format/packfile/parser_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plumbing/format/packfile/parser_test.go b/plumbing/format/packfile/parser_test.go index b0b4af8..09f3f97 100644 --- a/plumbing/format/packfile/parser_test.go +++ b/plumbing/format/packfile/parser_test.go @@ -132,6 +132,19 @@ func (s *ParserSuite) TestThinPack(c *C) { } +func (s *ParserSuite) TestResolveExternalRefsInThinPack(c *C) { + extRefsThinPack := fixtures.ByTag("codecommit").One() + + scanner := packfile.NewScanner(extRefsThinPack.Packfile()) + + obs := new(testObserver) + parser, err := packfile.NewParser(scanner, obs) + c.Assert(err, IsNil) + + _, err = parser.Parse() + c.Assert(err, IsNil) +} + type observerObject struct { hash string otype plumbing.ObjectType |