• Johannes Schindelin's avatar
    Make sure that index-pack --strict checks tag objects · f99b7af6
    Johannes Schindelin authored
    One of the most important use cases for the strict tag object checking
    is when transfer.fsckobjects is set to true to catch invalid objects
    early on. This new regression test essentially tests the same code path
    by directly calling 'index-pack --strict' on a pack containing an
    tag object without a 'tagger' line.
    
    Technically, this test is not enough: it only exercises a code path that
    *warns*, not one that *fails*. The reason is that hash-object and
    pack-objects both insist on parsing the tag objects and would fail on
    invalid tag objects at this time.
    Signed-off-by: Johannes Schindelin's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f99b7af6
t5302-pack-index.sh 9.23 KB