Re: Worktree silently deleted on git fetch/gc/log
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Mar 1, 2018, 18:09 UTC
- Message-ID
- <CAPig+cSGJhNR8dapLXN0TU8ZpTqi7m6OQf_cCGmHc9FLGcwNyg@mail.gmail.com>
- In-Reply-To
- <aa98f187-4b1a-176d-2a1b-826c995776cd@aegee.org>
On Wed, Feb 28, 2018 at 7:44 AM, Дилян Палаузов <dilyan.palauzov@aegee.org> wrote:
Show 20 quoted lines
> A (branch master) and > B (branch g) which is a worktree of the first. > > /git/B g>$ git fetch > [...] > From https://... > 13e4c55a0..02655d5fb g -> origin/g > c37a3ca25..bc7888511 master -> origin/master > Auto packing the repository in background for optimum performance. > See "git help gc" for manual housekeeping. > /git/B g<>$ git log -p origin/g > fatal: Not a git repository: /git/A/.git/worktrees/B > /git/B$ > > Please note that on the second last prompt there is <>, so that git-prompt > has found the neccessary information and this was this was later deleted - > by 'gc' or 'log'. > > What would be the procedure to restore the /git/A/.git/worktrees/B > structure?
Can you show us (via 'cat') the content of the following files?
/git/B/.git /git/A/.git/worktrees/b/HEAD /git/A/.git/worktrees/b/commondir /git/A/.git/worktrees/b/gitdir