Add an error about LANG= in g:fugitive_git_executable
This commit is contained in:
parent
ea26a94bde
commit
e25a214f78
@ -6,7 +6,7 @@ if exists('g:autoloaded_fugitive')
|
|||||||
endif
|
endif
|
||||||
let g:autoloaded_fugitive = 1
|
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'
|
let g:fugitive_git_executable = 'git'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ if exists('g:loaded_fugitive')
|
|||||||
endif
|
endif
|
||||||
let g:loaded_fugitive = 1
|
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
|
function! FugitiveGitDir(...) abort
|
||||||
if !a:0 || a:1 ==# -1
|
if !a:0 || a:1 ==# -1
|
||||||
return get(b:, 'git_dir', '')
|
return get(b:, 'git_dir', '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user