motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 7ebe5c143dcda62e5a66891322b7cd66470841c4 (tree)
parent c640ee78a8aa007ad8e7080c21d428e893652903
Author: Tim Pope <code@tpope.net>
Date:   Sun,  7 May 2017 15:29:01 -0400

Handle .git in file system root

References https://github.com/tpope/vim-fugitive/issues/908

Diffstat:
Mplugin/fugitive.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -298,6 +298,9 @@ endfunction function! s:repo_tree(...) dict abort if self.dir() =~# '/\.git$' let dir = self.dir()[0:-6] + if dir !~# '/' + let dir .= '/' + endif else let dir = s:configured_tree(self.git_dir) endif