Revision 7bf272cc042f41d1c16dfdd0d4893e61622e6dde authored by Junio C Hamano on 08 April 2014, 19:11:17 UTC, committed by Junio C Hamano on 08 April 2014, 19:11:17 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 2d1a5a5
t0055-beyond-symlinks.sh
#!/bin/sh
test_description='update-index and add refuse to add beyond symlinks'
. ./test-lib.sh
test_expect_success SYMLINKS setup '
>a &&
mkdir b &&
ln -s b c &&
>c/d &&
git update-index --add a b/d
'
test_expect_success SYMLINKS 'update-index --add beyond symlinks' '
test_must_fail git update-index --add c/d &&
! ( git ls-files | grep c/d )
'
test_expect_success SYMLINKS 'add beyond symlinks' '
test_must_fail git add c/d &&
! ( git ls-files | grep c/d )
'
test_done
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...