3 test_description='update-index and add refuse to add beyond symlinks'
7 test_expect_success SYMLINKS setup '
12 git update-index --add a b/d
15 test_expect_success SYMLINKS 'update-index --add beyond symlinks' '
16 test_must_fail git update-index --add c/d &&
17 ! ( git ls-files | grep c/d )
20 test_expect_success SYMLINKS 'add beyond symlinks' '
21 test_must_fail git add c/d &&
22 ! ( git ls-files | grep c/d )