Code

resolve_ref(): explicitly fail if a symlink is not readable
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 15 Sep 2011 21:10:31 +0000 (23:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Oct 2011 20:45:30 +0000 (13:45 -0700)
commit7bb2bf8e5cc47f7731c9c012ecc943b14f99ee5a
tree23d0c7e9d321e98401be80fcd50eb0c33bea3fc2
parenta40e6fb67a4aed2d5ffde5792bf7f1996d9666e1
resolve_ref(): explicitly fail if a symlink is not readable

Previously the failure came later, after a few steps in which the
length was treated like the actual length of a string.  Even though
the old code gave the same answers, it was somewhat misleading.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c