diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 4a24b5d..e7efc4f 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2152,7 +2152,7 @@ function! s:BufWriteIndexFile() endif let info = old_mode.' '.sha1.' '.stage."\t".path call writefile([info],tmp) - if has('win32') + if &shell =~# 'cmd' let error = system('type '.s:gsub(tmp,'/','\\').'|'.s:repo().git_command('update-index','--index-info')) else let error = system(s:repo().git_command('update-index','--index-info').' < '.tmp)