Re: Worktree silently deleted on git fetch/gc/log
- Date: Fri, 2 Mar 2018 06:56:56 +0700
- From: Duy Nguyen <pclouds@xxxxxxxxx>
- Subject: Re: Worktree silently deleted on git fetch/gc/log
On Fri, Mar 2, 2018 at 3:14 AM, Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote:
> As far as I know, there isn't any code in Git which would
> automatically remove the .git/worktrees/B directory, so it's not clear
> how that happened.
"git worktree prune" does, which is called by "git gc" and that was
actually executed from the command output in the original mail.
Дилян Палаузов did you move /git/B away manually? For example, you
originally created "B" with
git worktree add /somewhere/B g
then you do this at some point
mv /somewhere/B /git/B