1#!/bin/sh
23
test_description='git fsck random collection of tests'
45
. ./test-lib.sh
67
test_expect_success setup '
8test_commit A fileA one &&
9git checkout HEAD^0 &&
10test_commit B fileB two &&
11git tag -d A B &&
12git reflog expire --expire=now --all
13'
1415
test_expect_success 'HEAD is part of refs' '
16test 0 = $(git fsck | wc -l)
17'
1819
test_done