3 test_description='git fsck random collection of tests'
7 test_expect_success setup '
8 test_commit A fileA one &&
10 test_commit B fileB two &&
12 git reflog expire --expire=now --all
15 test_expect_success 'HEAD is part of refs' '
16 test 0 = $(git fsck | wc -l)
19 test_expect_success 'loose objects borrowed from alternate are not missing' '
24 echo ../../../.git/objects >.git/objects/info/alternates &&
25 test_commit C fileC one &&
27 ! grep "missing blob" out