Fix false positive "unknown Git error"

This commit is contained in:
Tim Pope
2021-08-22 00:20:47 -04:00
parent c7a93960c7
commit e7be4e4af9

View File

@@ -787,7 +787,7 @@ endfunction
function! s:ChompStderr(...) abort
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
function! s:ChompDefault(default, ...) abort