mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 04:54:52 +08:00
Fix false positive "unknown Git error"
This commit is contained in:
@@ -787,7 +787,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:ChompStderr(...) abort
|
function! s:ChompStderr(...) abort
|
||||||
let r = call('fugitive#Execute', a:000)
|
let r = call('fugitive#Execute', a:000)
|
||||||
return !r.exit_status ? '' ? len(r.stderr) > 1 : s:JoinChomp(r.stderr) : 'unknown Git error'
|
return !r.exit_status ? '' : len(r.stderr) > 1 ? s:JoinChomp(r.stderr) : 'unknown Git error' . string(r)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:ChompDefault(default, ...) abort
|
function! s:ChompDefault(default, ...) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user