From: David Turner Date: Wed, 24 Feb 2016 22:58:51 +0000 (-0500) Subject: refs: don't dereference on rename X-Git-Tag: v2.10.0-rc0~98^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/12fd3496d19c33c6401c5fdc7558944d46124a0f?hp=12fd3496d19c33c6401c5fdc7558944d46124a0f refs: don't dereference on rename When renaming refs, don't dereference either the origin or the destination before renaming. The origin does not need to be dereferenced because it is presently forbidden to rename symbolic refs. Not dereferencing the destination fixes a bug where renaming on top of a broken symref would use the pointed-to ref name for the moved reflog. Add a test for the reflog bug. Signed-off-by: David Turner Signed-off-by: Junio C Hamano Signed-off-by: Michael Haggerty ---