Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on worktrees #84

Open
etrnal70 opened this issue Apr 10, 2022 · 2 comments
Open

Doesn't work on worktrees #84

etrnal70 opened this issue Apr 10, 2022 · 2 comments

Comments

@etrnal70
Copy link

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

@rockyzhang24
Copy link

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

@rhysd
Copy link
Owner

rhysd commented Sep 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants