From 61fac2f738306119ddc0052de3da031777c855e0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 9 Oct 2013 14:13:45 -0400 Subject: [PATCH] Fix write to index with msysgit bash Closes #388. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)