From: Junio C Hamano Date: Wed, 20 Feb 2008 23:21:01 GMT Subject: Re: Built-in checkout: wrong behaviour in subdirectories Message-ID: <7vhcg32p0i.fsf@gitster.siamese.dyndns.org> In-Reply-To: Daniel Barkalow 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