trust-executable-bit: fix breakage for symlinks
commit2bbaaed9eefa92e8a17e74ec5f9b87ecdc7a5949
authorJunio C Hamano <junkio@cox.net>
Thu, 23 Nov 2006 00:33:32 +0000 (22 16:33 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 23 Nov 2006 00:36:49 +0000 (22 16:36 -0800)
treeacd44cdce2d8a530bdb63d5c0a6fa35648a50b91
parent5d1faf8791fa85ba9be2282900d4f704c7790648
trust-executable-bit: fix breakage for symlinks

An earlier commit f28b34a broke symlinks when trust-executable-bit
is not set because it incorrectly assumed that everything was a
regular file.

Reported by Juergen Ruehle.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-update-index.c
read-cache.c
t/t3700-add.sh