Skip to content
  • Johannes Schindelin's avatar
    Make sure that index-pack --strict checks tag objects · f99b7af6
    Johannes Schindelin authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f99b7af6