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

Re: Worktree "gitdir" file being mangled after upgrade to 2.7.0

From
Duy Nguyen <pclouds@gmail.com>
Date
Jan 14, 2016, 03:29 UTC
Message-ID
<CACsJy8D2Bz42kvBD1e=0oqxrYDry7_wCOy5Fi3oS-sGJxux4-w@mail.gmail.com>
In-Reply-To
<xmqqh9iglwf3.fsf@gitster.mtv.corp.google.com>
On Thu, Jan 14, 2016 at 9:36 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> Erik Johnson <palehose@gmail.com> writes:
>
>> Since upgrading to 2.7.0 last week, eventually I'll get to a point when
>> I run 'git worktree list' where several worktrees are incorrectly
>> reported as pointing to my main git checkout. Further analysis of the
>> files in $GIT_DIR/worktrees/worktree_name/ shows that the gitdir file
>> for the worktrees which display incorrectly contains ".git" instead of
>> what it should contain (i.e. "/path/to/worktree/.git".
>>
>> This was reported a couple days ago on Github:
>>
>> https://github.com/git/git-scm.com/issues/650
>>
>> Since the audiences for the mailing list and Github don't overlap
>> completely, I figured I'd report it here to get this issue in front of
>> as many eyes as possible.
>
> Thanks for relaying.  Duy, Michael, I think this is your area?

The only place that a relative pat hcan be written is update_linked_girdir() unless i'm mistaken. That function is being deleted "soon" because it causes another problem

-- 
Duy
Previous: Junio C HamanoNext: Mike Rappazzo
Message 3 of 6 in “Worktree "gitdir" file being mangled after upgrade to 2.7.0”
  1. Erik JohnsonJan 13, 2016
  2. Junio C HamanoJan 14, 2016
  3. Duy NguyenJan 14, 2016
  4. Mike RappazzoJan 14, 2016
  5. Junio C HamanoJan 15, 2016
  6. Andreas SchwabJan 14, 2016

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.