Code

rename_ref(): handle the case when the reflog of a ref does not exist
authorMiklos Vajna <vmiklos@frugalware.org>
Sun, 26 Oct 2008 02:33:57 +0000 (03:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Oct 2008 21:43:26 +0000 (14:43 -0700)
commit450d4c0f5a966b3f5835107ec4d8c344c8c25908
treef442e4f906b7b40fe8d19083471cac23539d1c69
parenteca35a25a92a1ad725af2a549fc9158488c4cc43
rename_ref(): handle the case when the reflog of a ref does not exist

We tried to check if a reflog of a ref is a symlink without first
checking if it exists, which is a bug.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c