-
I hope this is the correct place to put my question. I am sorry if it is not. That way, I have an alias to deal with my dotfiles with git: When I try to use vim-fugitive with my dotfiles project, I receive the failure "fugitive: file does not belong to a Git repository". I tried changing the global fugitive git executable variable manually in vim:
My next step was to try it manually: I used this answer here to allow using aliases in vim. But although it works manually ( Any ideas what I am doing wrong? How can I use vim-fugitive to manage my dotfiles? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Fugitive is transitioning away from using the shell and towards invoking the My preferred solution would be to make this work:
I haven't implemented this because I haven't managed to decipher how |
Beta Was this translation helpful? Give feedback.
Fugitive is transitioning away from using the shell and towards invoking the
git
executable directly. A shell alias won't work. You can get over this particular hurdle with a wrapper script but doubtless there are more ahead. Fugitive does not expectg:fugitive_git_executable
to provide its own Git dir and you'll probably just end up confusing it.My preferred solution would be to make this work:
I haven't implemented this because I haven't managed to decipher how
--git-dir=
and--work-tree=
interact with-C
and the current working directory, as we rely on those to implement much of Fugitive's functionality.