• Stepan Kasal's avatar
    t5000, t5003: do not use test_cmp to compare binary files · b93e6e36
    Stepan Kasal authored
    test_cmp() is primarily meant to compare text files (and display the
    difference for debug purposes).
    
    Raw "cmp" is better suited to compare binary files (tar, zip, etc.).
    
    On MinGW, test_cmp is a shell function mingw_test_cmp that tries to
    read both files into environment, stripping CR characters (introduced
    in commit 4d715ac0).
    
    This function usually speeds things up, as fork is extremly slow on
    Windows.  But no wonder that this function is extremely slow and
    sometimes even crashes when comparing large tar or zip files.
    Signed-off-by: default avatarStepan Kasal <kasal@ucw.cz>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    b93e6e36
t5001-archive-attr.sh 2.66 KB