]> git.ipfire.org Git - thirdparty/git.git/commit
index-pack: clarify the breached limit
authorMatt Cooper <vtbassmatt@gmail.com>
Thu, 24 Feb 2022 00:07:20 +0000 (00:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Feb 2022 01:41:10 +0000 (17:41 -0800)
commit0cf5fbc2e4ee124b4dc583fac6f7ad697616a56a
treef7e7566df0774ddb979487afc1d8f0ee30c6d906
parente6ebfd0e8cbbd10878070c8a356b5ad1b3ca464e
index-pack: clarify the breached limit

As a small courtesy to users, report what limit was breached. This
is especially useful when a push exceeds a server-defined limit, since
the user is unlikely to have configured the limit (their host did).
Also demonstrate the human-readable message in a test.

Helped-by: Taylor Blau <me@ttaylorr.com>
Helped-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Matt Cooper <vtbassmatt@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c
t/t5302-pack-index.sh