3 test_description='magic pathspec tests using git-log'
7 test_expect_success 'setup' '
10 git commit --allow-empty -m empty &&
14 test_expect_success '"git log :/" should be ambiguous' '
15 test_must_fail git log :/ 2>error &&
19 test_expect_success '"git log :" should be ambiguous' '
20 test_must_fail git log : 2>error &&
24 test_expect_success 'git log -- :' '
28 test_expect_success 'git log HEAD -- :/' '
29 cat >expected <<-EOF &&
32 (cd sub && git log --oneline HEAD -- :/ >../actual) &&
33 test_cmp expected actual