Skip to content

Commit 2c999d4

Browse files
committed
Fix write to index on Vim 7
Resolves: #2254
1 parent 5965909 commit 2c999d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/fugitive.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ function! s:StdoutToFile(out, cmd, ...) abort
10071007
throw 'fugitive: Vim 8 or higher required to use ' . &shell
10081008
else
10091009
let cmd = fugitive#ShellCommand(a:cmd)
1010-
return s:SystemError(' (' . cmd . ' >' . a:out . ') ')
1010+
return s:SystemError(' (' . cmd . ' >' . (len(a:out) ? a:out : '/dev/null') . ') ')
10111011
endif
10121012
endfunction
10131013

0 commit comments

Comments
 (0)