3 test_description='git reset in a bare repository'
6 test_expect_success 'setup non-bare' '
14 test_expect_success 'setup bare' '
15 git clone --bare . bare.git &&
19 test_expect_success 'hard reset is not allowed' '
20 test_must_fail git reset --hard HEAD^
23 test_expect_success 'soft reset is allowed' '
24 git reset --soft HEAD^ &&
25 test "`git show --pretty=format:%s | head -n 1`" = "one"