Merge branch 'jk/pack-objects-negative-options-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 11 May 2021 06:27:23 +0000 (15:27 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 May 2021 06:27:23 +0000 (15:27 +0900)
commit1af57f5d321aeb95dbdbe48bdb2b0e1e37528323
treefecc8dcdda06c52d926b1a83bdef50ef3d36300c
parent270f8bfe0038fe84f8a08bdc26f8b4094df10b08
parent6d52b6a5dfe0bee20dbfb2a3a7291bcf9a152672
Merge branch 'jk/pack-objects-negative-options-fix'

Options to "git pack-objects" that take numeric values like
--window and --depth should not accept negative values; the input
validation has been tightened.

* jk/pack-objects-negative-options-fix:
  pack-objects: clamp negative depth to 0
  t5316: check behavior of pack-objects --depth=0
  pack-objects: clamp negative window size to 0
  t5300: check that we produced expected number of deltas
  t5300: modernize basic tests
builtin/pack-objects.c