Thread (10 messages) 10 messages, 3 authors, 2018-03-07

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

flat view

From: Eric Sunshine <hidden>
Date: 2018-03-02 11:40:24

On Fri, Mar 2, 2018 at 6:34 AM, Дилян Палаузов
[off-list ref] wrote:
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help