From e25a214f780ed6ece49d22e2d1fe78e7b7e24afc Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 18 Jul 2019 11:06:08 -0400 Subject: [PATCH] Add an error about LANG= in g:fugitive_git_executable --- autoload/fugitive.vim | 2 +- plugin/fugitive.vim | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index fe466e7..b23b230 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6,7 +6,7 @@ if exists('g:autoloaded_fugitive') endif let g:autoloaded_fugitive = 1 -if !exists('g:fugitive_git_executable') +if !exists('g:fugitive_git_executable') || g:fugitive_git_executable =~# '^LANG=' let g:fugitive_git_executable = 'git' endif diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 9688aab..3bd3857 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -8,6 +8,10 @@ if exists('g:loaded_fugitive') endif let g:loaded_fugitive = 1 +if get(g:, 'fugitive_git_executable', '') =~# '^LANG=' + echoerr 'Including "LANG=..." in g:fugitive_git_executable is no longer necessary or supported. Remove the "let g:fugitive_git_executable = ..." line from your vimrc.' +endif + function! FugitiveGitDir(...) abort if !a:0 || a:1 ==# -1 return get(b:, 'git_dir', '')