read-cache: check for leading symlinks when refreshing index
commitccad42d4836e2bb4d1843eccd94f58f0189abb1d
authorRené Scharfe <l.s.r@web.de>
Sat, 9 Aug 2014 17:43:29 +0000 (9 19:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Aug 2014 18:16:20 +0000 (10 11:16 -0700)
tree90dc8c7392cf41ffa3ba26c68dc6fbe17f3c7653
parentd31f3ad23dd1aee3c3e1015a43b02b995c01a9a1
read-cache: check for leading symlinks when refreshing index

Don't add paths with leading symlinks to the index while refreshing; we
only track those symlinks themselves.  We already ignore them while
preloading (see read_index_preload.c).

Reported-by: Nikolay Avdeev <avdeev@math.vsu.ru>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c
t/t7515-status-symlinks.sh [new file with mode: 0755]