add -p: prompt for single characters
[git/spearce.git] / t / t0055-beyond-symlinks.sh
blobb29c37a5a4de42239474c4fdf87c86c6f27b6ade
1 #!/bin/sh
3 test_description='update-index and add refuse to add beyond symlinks'
5 . ./test-lib.sh
7 test_expect_success setup '
8 >a &&
9 mkdir b &&
10 ln -s b c &&
11 >c/d &&
12 git update-index --add a b/d
15 test_expect_success '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 'add beyond symlinks' '
21 test_must_fail git add c/d &&
22 ! ( git ls-files | grep c/d )
25 test_done