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 1eeeb41f3f4268b6aaf6f6a3eecd55f33780a811 (tree)
parent 201bdd0eff4cd79847cf006f143deb62f8f97342
Author: Tim Pope <code@tpope.net>
Date:   Sat,  6 Aug 2011 17:05:46 -0400

Work around git.vim's broken b:git_dir

Diffstat:
Mplugin/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -128,7 +128,7 @@ function! s:ExtractGitDir(path) abort endfunction function! s:Detect(path) - if exists('b:git_dir') && b:git_dir ==# '' + if exists('b:git_dir') && (b:git_dir ==# '' || b:git_dir =~# '/$') unlet b:git_dir endif if !exists('b:git_dir')