Let t0000 pass on Windows again
[git/dscho.git] / t / t0055-beyond-symlinks.sh
blobfabfaf3578db9ae3bf2488ebb530af8b6d9ef4aa
1 #!/bin/sh
3 test_description='update-index and add refuse to add beyond symlinks'
5 . ./test-lib.sh
7 if test "$no_symlinks"; then
8 say "symbolic links not supported - skipping tests"
9 test_done
12 test_expect_success setup '
13 >a &&
14 mkdir b &&
15 ln -s b c &&
16 >c/d &&
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 )
30 test_done