3 test_description
='--all includes detached HEADs'
5 TEST_PASSES_SANITIZE_LEAK
=true
16 test_expect_success
'setup' '
25 test_expect_success
'rev-list --all lists detached HEAD' '
27 test 3 = $(git rev-list --all | wc -l)
31 test_expect_success
'repack does not lose detached HEAD' '
34 git prune --expire=now &&
39 test_expect_success
'rev-list --graph --no-walk is forbidden' '
40 test_must_fail git rev-list --graph --no-walk HEAD