From 24efca8f4fcb2f71b1652ed40d20b561810cb4ac Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 9 Sep 2010 11:17:45 -0400 Subject: [PATCH] Fix :Gcommit with noisy pre-commit hook --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 857edbb..298e59d 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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,'%(%(^| )-- )@