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
Andreas Schwab <schwab@linux-m68k.org>
Date
Jan 14, 2016, 18:36 UTC
Message-ID
<87oaco2eka.fsf@igel.home>
In-Reply-To
<20160113234753.GA26473@gmail.com>
Erik Johnson <palehose@gmail.com> writes:
Show 6 quoted lines
> 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 always happens to me when I run "git rebase" in a worktree.
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Junio C Hamano
Message 6 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.