Junio C Hamano <gitster@xxxxxxxxx> writes: > Daniel Barkalow <barkalow@xxxxxxxxxxxx> writes: > >> Junio: it looks like something used to cause read-tree to be run with >> pwd being the working tree root in git-checkout.sh. > > "Something"? I think we explicitly cdup when switching > branches, and we should do the same in C rewrite. > > # We are switching branches and checking out trees, so > # we *NEED* to be at the toplevel. > cd_to_toplevel Isn't it just the matter of not passing prefix to topts in merge_working_tree()? Your other calls to unpack_trees() do not seem to pass bogus prefix to it. IIRC, the "prefix" to unpack_trees() is not about the path limiter, but grafting a tree into a place where it originally was not intended to be (i.e. to support "read-tree --prefix"). - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html