git-messenger.vim icon indicating copy to clipboard operation
git-messenger.vim copied to clipboard

Doesn't work on worktrees

Open etrnal70 opened this issue 3 years ago • 2 comments

When editing worktrees, to make git functionality working on neovim i usually use this env. variables

GIT_DIR=<bare-repo-location> GIT_WORK_TREE=<worktree-location> nvim <filename>

Git plugins like fugitive or gitsigns.nvim works fine. But on git-messenger, it shows error that current worktree-location is not a git directory

etrnal70 avatar Apr 10 '22 04:04 etrnal70

Same issue here. @rhysd Could you please support to respect GIT_DIR and GIT_WORK_TREE env? Thank you very much.

rockyzhang24 avatar May 30 '22 17:05 rockyzhang24

git-messenger.vim always gives git current directory through -C. I'm not sure, but it would be prioritized over the env vars.

This is difficult issue for me since I don't have the bare repository environment. I'd appreciate if someone provides how to make the minimal environment to reproduce this issue.

rhysd avatar Sep 20 '22 14:09 rhysd