git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Built-in checkout: wrong behaviour in subdirectories

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Feb 20, 2008, 22:44 UTC
Message-ID
<alpine.LNX.1.00.0802201740050.19024@iabervon.org>
In-Reply-To
<20080220223520.GA23642@localhost>
On Wed, 20 Feb 2008, Clemens Buchacher wrote:
Show 18 quoted lines
> Hi,
> 
> The following test shows a problem since commit 782c2d6 (Build in checkout):
> 
> mkdir testrep
> cd testrep
> git init
> 
> : >file1
> git add file1
> git commit -m 'initial'
> 
> git branch dev
> 
> mkdir dir1
> cd dir1
> # this creates dir1/file1
> git checkout dev

I was just recently wondering why that worked (in the context of trying to have builtin-clone work the same way). Guess that explains it...

Junio: it looks like something used to cause read-tree to be run with 
pwd being the working tree root in git-checkout.sh; is that something that 
should be done in setup for builtin-checkout, or should unpack_trees learn 
how to deal correctly with a non-pwd work tree root?
	-Daniel
*This .sig left intentionally blank*
Previous: Clemens BuchacherNext: Junio C Hamano
Message 2 of 6 in “Built-in checkout: wrong behaviour in subdirectories”
  1. Clemens BuchacherFeb 20, 2008
  2. Daniel BarkalowFeb 20, 2008
  3. Junio C HamanoFeb 20, 2008
  4. Junio C HamanoFeb 20, 2008
  5. Daniel BarkalowFeb 21, 2008
  6. checkout: work from a subdirectoryJunio C Hamano, Feb 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.