aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/delta_selector_test.go
diff options
context:
space:
mode:
authorAntonio Jesus Navarro Perez <antnavper@gmail.com>2017-05-03 15:04:17 +0200
committerAntonio Jesus Navarro Perez <antnavper@gmail.com>2017-05-08 11:23:13 +0200
commit7b3ff5810ef994b468b0d7c993819aae563796df (patch)
tree729b4f61af22e540887d9f3cf57e4cdfe2a14151 /plumbing/format/packfile/delta_selector_test.go
parentced875aec7bef9113e1c37b1b811a59e17dbd138 (diff)
downloadgo-git-7b3ff5810ef994b468b0d7c993819aae563796df.tar.gz
format/packfile: fix bug when the delta depth is equals to 50
Diffstat (limited to 'plumbing/format/packfile/delta_selector_test.go')
-rw-r--r--plumbing/format/packfile/delta_selector_test.go5
1 files changed, 5 insertions, 0 deletions
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))
+}