X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1450-fsck.sh;h=759cf12e16bcddc3dab9d6b3ad8abd5590245a94;hb=a0b6a9d2b2b0667bc170c864a05b3ec4635a71bb;hp=22a80c8268b368963d58fd26fffde5cc8d084ee6;hpb=3499cb1ae7b97ce8f67879156e2014e31dd985b6;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.