From 7b3ff5810ef994b468b0d7c993819aae563796df Mon Sep 17 00:00:00 2001 From: Antonio Jesus Navarro Perez Date: Wed, 3 May 2017 15:04:17 +0200 Subject: format/packfile: fix bug when the delta depth is equals to 50 --- plumbing/format/packfile/delta_selector_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plumbing/format/packfile/delta_selector_test.go') diff --git a/plumbing/format/packfile/delta_selector_test.go b/plumbing/format/packfile/delta_selector_test.go index 9a8833f..cbbbc89 100644 --- a/plumbing/format/packfile/delta_selector_test.go +++ b/plumbing/format/packfile/delta_selector_test.go @@ -197,3 +197,8 @@ func (s *DeltaSelectorSuite) TestObjectsToPack(c *C) { c.Assert(otp[2].IsDelta(), Equals, true) c.Assert(otp[2].Depth, Equals, 2) } + +func (s *DeltaSelectorSuite) TestMaxDepth(c *C) { + dsl := s.ds.deltaSizeLimit(0, 0, int(maxDepth), true) + c.Assert(dsl, Equals, int64(0)) +} -- cgit