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

Re: rebase not honoring core.worktree pointing elsewhere

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Nov 3, 2010, 15:52 UTC
Message-ID
<AANLkTi=UxD0cNvFK0RctCq=idfQV4VH+sNoOO2PLT2sh@mail.gmail.com>
In-Reply-To
<loom.20101103T162424-483@post.gmane.org>
On Wed, Nov 3, 2010 at 10:41 PM, Paul Drews <paul.drews@intel.com> wrote:
Show 19 quoted lines
>> Another one: create a .git file with this line and put it in worktree's
>> topdir
>>
>> gitdir: /path/to/real/git.dir
>>
>> See gitrepository-layout.txt.
>
> Ooh!  That would be my favorite, since it's a documented legal usage.
> Unfortunately, although the rebase scenario works that way a local
> "git clone" doesn't work:
>
> # git clone /abs/path/to/proj
> Cloning into proj...
> fatal: failed to open '/abs/path/to/proj/objects': No such file or directory
> # git clone /abs/path/to/proj/
> Cloning into proj...
> fatal: failed to open '/abs/path/to/proj//objects': No such file or directory
> # git --version
> git version 1.7.3.GIT
"git clone" needs to learn about .git file. Thanks for pointing it out.
-- 
Duy
Previous: Paul DrewsNext: Jonathan Nieder
Message 8 of 10 in “rebase not honoring core.worktree pointing elsewhere”
  1. Paul DrewsNov 1, 2010
  2. Sverre RabbelierNov 1, 2010
  3. Nguyen Thai Ngoc DuyNov 2, 2010
  4. Junio C HamanoNov 2, 2010
  5. Paul DrewsNov 2, 2010
  6. Nguyen Thai Ngoc DuyNov 3, 2010
  7. Paul DrewsNov 3, 2010
  8. Nguyen Thai Ngoc DuyNov 3, 2010
  9. Jonathan NiederNov 3, 2010
  10. Nguyen Thai Ngoc DuyNov 4, 2010

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.