From f6d93b8788b57990a2669b2408004c0086d6a878 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 12 Mar 2013 02:32:13 -0400 Subject: [PATCH] Don't dispatch autocommands when calling git commit Closes #295. --- plugin/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index de4b52c..9f264bb 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -931,11 +931,11 @@ function! s:Commit(args) abort endif let command .= s:repo().git_command('commit').' '.a:args if &shell =~# 'csh' - silent execute '!('.command.' > '.outfile.') >& '.errorfile + noautocmd silent execute '!('.command.' > '.outfile.') >& '.errorfile elseif a:args =~# '\%(^\| \)--interactive\>' - execute '!'.command.' 2> '.errorfile + noautocmd execute '!'.command.' 2> '.errorfile else - silent execute '!'.command.' > '.outfile.' 2> '.errorfile + noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile endif finally execute cd.'`=dir`'