1#!/bin/sh
23
test_description='update-index refuses to add beyond symlinks'
45
. ./test-lib.sh
67
test_expect_success setup '
8>a &&
9mkdir b &&
10ln -s b c &&
11>c/d &&
12git update-index --add a b/d
13'
1415
test_expect_success 'update-index --add beyond symlinks' '
16test_must_fail git update-index --add c/d &&
17! ( git ls-files | grep c/d )
18'
1920
test_done