fsck: HEAD is part of refs
[git/dkf.git] / t / t1450-fsck.sh
blobd3a17b45081c099547c63d4b9be7a6dd47f07deb
1 #!/bin/sh
3 test_description='git fsck random collection of tests'
5 . ./test-lib.sh
7 test_expect_success setup '
8 test_commit A fileA one &&
9 git checkout HEAD^0 &&
10 test_commit B fileB two &&
11 git tag -d A B &&
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_done