mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 23:33:43 -05:00
Fix :Gcommit with noisy pre-commit hook
This commit is contained in:
@@ -697,7 +697,7 @@ function! s:Commit(args) abort
|
||||
endif
|
||||
return ''
|
||||
else
|
||||
let error = get(readfile(errorfile,'',1),0,'!')
|
||||
let error = get(readfile(errorfile),-2,'!')
|
||||
if error =~# "'false'\\.$"
|
||||
let args = a:args
|
||||
let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[se]|--edit|--interactive)%($| )','')
|
||||
|
||||
Reference in New Issue
Block a user