mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Fix :Gcommit on csh and Windows
This commit is contained in:
@@ -728,9 +728,11 @@ function! s:Commit(args) abort
|
||||
endif
|
||||
let command .= s:repo().git_command('commit').' '.a:args
|
||||
if &shell =~# 'csh'
|
||||
call system('('.command.' > '.outfile.') >& '.errorfile)
|
||||
call system('(('.command.' > '.outfile.') >& '.errorfile.')')
|
||||
elseif a:args =~# '\%(^\| \)--interactive\>'
|
||||
call system(command.' 2> '.errorfile)
|
||||
execute '!'.command.' 2> '.errorfile
|
||||
elseif shell =~# 'cmd'
|
||||
silent execute '!'.command.' > '.outfile.' 2> '.errorfile
|
||||
else
|
||||
call system(command.' > '.outfile.' 2> '.errorfile)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user