3 test_description
='update-index and add refuse to add beyond symlinks'
7 if test "$no_symlinks"; then
8 say
"symbolic links not supported - skipping tests"
12 test_expect_success setup
'
17 git update-index --add a b/d
20 test_expect_success
'update-index --add beyond symlinks' '
21 test_must_fail git update-index --add c/d &&
22 ! ( git ls-files | grep c/d )
25 test_expect_success
'add beyond symlinks' '
26 test_must_fail git add c/d &&
27 ! ( git ls-files | grep c/d )