From 9edacf9d5b4d6e0570af33f88500f51ec4288c2e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 19 Aug 2019 06:24:46 -0400 Subject: [PATCH] Prefer FugitiveFind() over FugitiveCommonDir() FugitiveFind() is guaranteed to include a Vim friendly path, while FugitiveCommonDir() currently returns a Git friendly path. That is, the latter uses forwards slashes even on win32, and might do something to accommodate Cygwin. --- plugin/rhubarb.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin/rhubarb.vim b/plugin/rhubarb.vim index ea05b66..dc982e1 100644 --- a/plugin/rhubarb.vim +++ b/plugin/rhubarb.vim @@ -16,9 +16,7 @@ if get(g:, 'fugitive_git_command', 'git') ==# 'git' && executable('hub') endif function! s:Config() abort - if exists('*FugitiveCommonDir') - let dir = FugitiveCommonDir() - elseif exists('*FugitiveFind') + if exists('*FugitiveFind') let dir = FugitiveFind('.git/config')[0:-8] else let dir = get(b:, 'git_dir', '')