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

Re: BUG: Renaming a branch checked out in a different work tree

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 29, 2017, 18:40 UTC
Message-ID
<20170329184018.GV31294@aiede.mtv.corp.google.com>
In-Reply-To
<CALA94fPqm5UnYBwqZ5fDJ=DL_9EaZeRfqHB5ZzUQt11FSz4ZMA@mail.gmail.com>

(+cc: Kazuki Yamaguchi --- thanks for writing the fix!) Hi Eyal,

Eyal Lotem wrote:
Show 8 quoted lines
> git version: 2.7.4
> installed from Ubuntu repos:
> Ubuntu Version: 1:2.7.4-0ubuntu1
>
> When renaming a branch checked out in a different work tree, that work
> tree's state is corrupted. Git status in that work tree then reports
> itself being on the "initial commit" with all files being in the
> staging area.

I believe this is fixed by v2.8.3~42^2~1 (branch -m: update all per-worktree HEADs, 2016-03-27).

Thanks and hope that helps, Jonathan

Previous: Eyal LotemNext: Andreas Schwab
Message 2 of 3 in “BUG: Renaming a branch checked out in a different work tree”
  1. Eyal LotemMar 29, 2017
  2. Jonathan NiederMar 29, 2017
  3. Andreas SchwabMar 29, 2017

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.