X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft1450-fsck.sh;h=759cf12e16bcddc3dab9d6b3ad8abd5590245a94;hb=452c6d506b1a6dcf24d4ceaa592afc39c1c1a60e;hp=22a80c8268b368963d58fd26fffde5cc8d084ee6;hpb=a26df4cd2fdad7451d4ec99f8a339b9e107a4728;p=git.git diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh index 22a80c826..759cf12e1 100755 --- a/t/t1450-fsck.sh +++ b/t/t1450-fsck.sh @@ -5,7 +5,9 @@ test_description='git fsck random collection of tests' . ./test-lib.sh test_expect_success setup ' + git config i18n.commitencoding ISO-8859-1 && test_commit A fileA one && + git config --unset i18n.commitencoding && git checkout HEAD^0 && test_commit B fileB two && git tag -d A B && @@ -28,6 +30,12 @@ test_expect_success 'loose objects borrowed from alternate are not missing' ' ) ' +test_expect_success 'valid objects appear valid' ' + { git fsck 2>out; true; } && + ! grep error out && + ! grep fatal out +' + # Corruption tests follow. Make sure to remove all traces of the # specific corruption you test afterwards, lest a later test trip over # it.