From b07632a6167486f46b101826cc234c4430561f74 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 25 Aug 2021 04:39:51 -0400 Subject: [PATCH] Fix :Git merge Resolves: https://github.com/tpope/vim-fugitive/issues/1817 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 4074404..c5b9068 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4936,8 +4936,8 @@ endfunction function! s:MergeSubcommand(line1, line2, range, bang, mods, options) abort if empty(a:options.subcommand_args) && ( - \ filereadable(fugitive#Find('.git/MERGE_MSG', dir)) || - \ isdirectory(fugitive#Find('.git/rebase-apply', dir)) || + \ filereadable(fugitive#Find('.git/MERGE_MSG', a:options)) || + \ isdirectory(fugitive#Find('.git/rebase-apply', a:options)) || \ !empty(s:TreeChomp([a:options.git_dir, 'diff-files', '--diff-filter=U']))) return 'echoerr ":Git merge for loading conflicts hase been removed in favor of :Git mergetool"' endif