Worktrees attached to bare repo don't work
- From
- Lobachevksiy Vitaliy <numzer0@yandex.ru>
- Date
- Sep 12, 2020, 19:59 UTC
- Message-ID
- <3b57a5b2-a34e-de95-38c7-9bc6923a8eba@yandex.ru>
I have a bare repository and several worktrees attached to it. That was working fine until recent update. Now when I try virtually any git command like `git status` in any attached worktree, or even in a new one, it prints `fatal: this operation must be run in a work tree`. The workaround is simply `git config --worktree --add core.bare false` in each worktree.
I have git version 2.28.0 on Void Linux (musl, amd64).
-- Vitaliy `numzero`