From ccc32c31642a42f53a63508de8742674a4ba665f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 16 Jun 2017 10:39:50 +0900 Subject: [PATCH] Do not depend on fugitive for finding git root Revert #239 Close #387 --- autoload/fzf/vim.vim | 7 ------- 1 file changed, 7 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 9f02ff1..ac6460b 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -447,14 +447,7 @@ endfunction " GFiles[?] " ------------------------------------------------------------------ -" helper function to get the git root. Uses vim-fugitive if available for EXTRA SPEED! function! s:get_git_root() - if exists('*fugitive#repo') - try - return fugitive#repo().tree() - catch - endtry - endif let root = split(system('git rev-parse --show-toplevel'), '\n')[0] return v:shell_error ? '' : root endfunction