Fix :Gcommit with noisy pre-commit hook
This commit is contained in:
parent
9d02bf0868
commit
24efca8f4f
@ -697,7 +697,7 @@ function! s:Commit(args) abort
|
|||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
else
|
else
|
||||||
let error = get(readfile(errorfile,'',1),0,'!')
|
let error = get(readfile(errorfile),-2,'!')
|
||||||
if error =~# "'false'\\.$"
|
if error =~# "'false'\\.$"
|
||||||
let args = a:args
|
let args = a:args
|
||||||
let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[se]|--edit|--interactive)%($| )','')
|
let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[se]|--edit|--interactive)%($| )','')
|
||||||
|
Loading…
Reference in New Issue
Block a user