register_ref(): make a copy of the bad reference SHA-1
commitbf42772e38db8e758aa28a045e8cba88096a9fcc
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 25 May 2013 09:08:23 +0000 (25 11:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Jun 2013 22:28:47 +0000 (2 15:28 -0700)
treed6ba4088263ca0811ffbf1c9762afc4cb9023e52
parent66ce0366285f73c340f04a21b3d8be898d7bf5a7
register_ref(): make a copy of the bad reference SHA-1

The lifetime of the sha1 parameter passed to an each_ref_fn callback
is not guaranteed, so make a copy for later use.

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