From: Eric Sunshine <sunshine@sunshineco.com>
To: "Дилян Палаузов" <dilyan.palauzov@aegee.org>
Cc: Duy Nguyen <pclouds@gmail.com>, Git List <git@vger.kernel.org>
Subject: Re: Worktree silently deleted on git fetch/gc/log
Date: Fri, 2 Mar 2018 06:40:08 -0500 [thread overview]
Message-ID: <CAPig+cRSMOUTQDA0NKNg_nx9HASmnqpFuyRjcSFjdKbVwAuvrw@mail.gmail.com> (raw)
In-Reply-To: <b34d74fa-f4c7-fb4a-49df-cd7ebd996d95@aegee.org>
On Fri, Mar 2, 2018 at 6:34 AM, Дилян Палаузов
<dilyan.palauzov@aegee.org> 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/
next prev parent reply other threads:[~2018-03-02 11:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-28 12:44 Worktree silently deleted on git fetch/gc/log Дилян Палаузов
2018-03-01 18:09 ` Eric Sunshine
2018-03-01 19:24 ` Дилян Палаузов
2018-03-01 20:14 ` Eric Sunshine
2018-03-01 23:56 ` Duy Nguyen
2018-03-02 11:34 ` Дилян Палаузов
2018-03-02 11:40 ` Eric Sunshine [this message]
2018-03-02 11:53 ` Duy Nguyen
2018-03-03 10:05 ` Eric Sunshine
2018-03-07 10:01 ` Duy Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPig+cRSMOUTQDA0NKNg_nx9HASmnqpFuyRjcSFjdKbVwAuvrw@mail.gmail.com \
--to=sunshine@sunshineco.com \
--cc=dilyan.palauzov@aegee.org \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.