1
0
mirror of https://github.com/git/git.git synced 2025-04-17 18:35:50 +00:00
git/builtin
Christian Couder 769a4fa463 builtin/replace: unset read_replace_refs
When checking to see if some objects are of the same type
and when displaying the type of objects, git replace uses
the sha1_object_info() function.

Unfortunately this function by default respects replace
refs, so instead of the type of a replaced object, it
gives the type of the replacement object which might
be different.

To fix this bug, and because git replace should work at a
level before replacement takes place, let's unset the
read_replace_refs global variable at the beginning of
cmd_replace().

Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-12-12 11:53:49 -08:00
..
2013-09-17 11:42:34 -07:00
2013-09-09 14:36:15 -07:00
2013-10-31 13:47:35 -07:00
2013-10-31 13:48:09 -07:00
2013-09-17 11:42:31 -07:00
2013-09-09 14:30:29 -07:00
2013-09-20 12:36:12 -07:00
2013-09-17 11:37:33 -07:00
2013-10-23 13:21:31 -07:00
2013-10-23 13:21:31 -07:00
2013-09-09 14:36:15 -07:00
2013-10-31 11:12:24 -07:00
2013-10-23 13:21:26 -07:00
2013-09-11 14:56:59 -07:00
2013-09-20 12:36:12 -07:00
2013-07-15 10:56:07 -07:00
2013-09-20 12:36:12 -07:00
2013-09-09 14:36:15 -07:00