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

Re: Worktree silently deleted on git fetch/gc/log

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 2, 2018, 11:40 UTC
Message-ID
<CAPig+cRSMOUTQDA0NKNg_nx9HASmnqpFuyRjcSFjdKbVwAuvrw@mail.gmail.com>
In-Reply-To
<b34d74fa-f4c7-fb4a-49df-cd7ebd996d95@aegee.org>

On Fri, Mar 2, 2018 at 6:34 AM, Дилян Палаузов <dilyan.palauzov@aegee.org> wrote:

Show 6 quoted lines
> Your assumption is correct: when renaming the directory apparently I have
> not adjusted /git/A/.git/worktrees/B/gitdir to the new location.
>
> I fixed the situation by renaming /git/B to /git/B.bak, creating a new
> worktree pointing to /git/B (with branch g), then deleting /git/B and moving
> /git/B.bak to /git/B .

Duy's patch series to add a "git worktree move" command[1] should help avoid such problems in the future.

[1]: https://public-inbox.org/git/20180124095357.19645-1-pclouds@gmail.com/
Previous: Дилян ПалаузовNext: Duy Nguyen
Message 7 of 10 in “Worktree silently deleted on git fetch/gc/log”
  1. Дилян ПалаузовFeb 28, 2018
  2. Eric SunshineMar 1, 2018
  3. Дилян ПалаузовMar 1, 2018
  4. Eric SunshineMar 1, 2018
  5. Duy NguyenMar 1, 2018
  6. Дилян ПалаузовMar 2, 2018
  7. Eric SunshineMar 2, 2018
  8. Duy NguyenMar 2, 2018
  9. Eric SunshineMar 3, 2018
  10. Duy NguyenMar 7, 2018

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.