remote: avoid passing NULL to read_ref()
commitd51b720fca4ee5418952a90f785317592a7a1242
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 15 Sep 2011 21:10:38 +0000 (15 23:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Oct 2011 20:45:31 +0000 (5 13:45 -0700)
tree0a42c14f8387f2f104e35b1bae87c8929829d06c
parentc28cce55e0ea1d674ccc89cadadac0bfef511384
remote: avoid passing NULL to read_ref()

read_ref() can (and in test t5800, actually *does*) return NULL.
Don't pass the NULL along to read_ref().  Coincidentally, this mistake
didn't make resolve_ref() blow up, but upcoming changes to
resolve_ref() will make it less forgiving.

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