I'm using git bare repo to manage my dotfiles. In vim, I set the git dir and git work tree by :let $GIT_DIR = '/Users/my-name/.dotfiles' and :let $GIT_WORK_TREE = '/Users/my-name'. Then the error occurs when I execute :Git difftool -y (please see the screenshot below). It works well in normal git repos.
I'm using git bare repo to manage my dotfiles. In vim, I set the git dir and git work tree by
:let $GIT_DIR = '/Users/my-name/.dotfiles'
and:let $GIT_WORK_TREE = '/Users/my-name'
. Then the error occurs when I execute:Git difftool -y
(please see the screenshot below). It works well in normal git repos.I believe it is caused by this commit (https://github.com/tpope/vim-fugitive/commit/ed9e21fb9bdbda7989c1c9190ca830d36a5df4e2). I reset fugitive to the previous commit and everything works.
Thank you.