3 test_description
='update-index and add refuse to add beyond symlinks'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success SYMLINKS setup
'
13 git update-index --add a b/d
16 test_expect_success SYMLINKS
'update-index --add beyond symlinks' '
17 test_must_fail git update-index --add c/d &&
18 cat >expect <<-\EOF &&
22 git ls-files >actual &&
23 test_cmp expect actual
26 test_expect_success SYMLINKS
'add beyond symlinks' '
27 test_must_fail git add c/d &&
28 cat >expect <<-\EOF &&
32 git ls-files >actual &&
33 test_cmp expect actual