Re: [PATCH v2 09/10] builtin/replace: unset read_replace_refs

2013-12-07 Thread Jakub Narebski
Christian Couder chriscool at tuxfamily.org writes: 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

Re: [PATCH v2 09/10] builtin/replace: unset read_replace_refs

2013-12-07 Thread Christian Couder
On Sat, Dec 7, 2013 at 8:02 PM, Jakub Narebski jna...@gmail.com wrote: Wasn't replace mechanism tightened, so that replacing object must be the same type as replaced object? Yes, but if --force is used or if the replace ref is created with git update-ref, then it is not enforced. Is there a