mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 03:23:46 -05:00
Fix write to index on Vim 7
Resolves: https://github.com/tpope/vim-fugitive/issues/2254
This commit is contained in:
@@ -1007,7 +1007,7 @@ function! s:StdoutToFile(out, cmd, ...) abort
|
||||
throw 'fugitive: Vim 8 or higher required to use ' . &shell
|
||||
else
|
||||
let cmd = fugitive#ShellCommand(a:cmd)
|
||||
return s:SystemError(' (' . cmd . ' >' . a:out . ') ')
|
||||
return s:SystemError(' (' . cmd . ' >' . (len(a:out) ? a:out : '/dev/null') . ') ')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user