mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -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
|
throw 'fugitive: Vim 8 or higher required to use ' . &shell
|
||||||
else
|
else
|
||||||
let cmd = fugitive#ShellCommand(a:cmd)
|
let cmd = fugitive#ShellCommand(a:cmd)
|
||||||
return s:SystemError(' (' . cmd . ' >' . a:out . ') ')
|
return s:SystemError(' (' . cmd . ' >' . (len(a:out) ? a:out : '/dev/null') . ') ')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user