motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 9e378fd9aac6fff2d2e76e53dc563dfcbe360046 (tree)
parent 783ec701fecb88ec322c8685c6dae1f27a39853b
Author: Tim Pope <code@tpope.net>
Date:   Sun, 21 Feb 2021 14:56:41 -0500

Resolve temp name used in :Git

This will enable us to use the temp name in a job backed --paginate.
Since temp file names have been the subject of various issues on win32
in the past, let's make this change sooner rather than later to get a
head start on any bug reports.

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2593,7 +2593,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort \ 'echo_buffer': '', \ 'escape_buffer': '', \ 'log': [], - \ 'temp': tempname()} + \ 'temp': s:Resolve(tempname())} let state.pty = get(g:, 'fugitive_pty', has('unix') && (has('patch-8.0.0744') || has('nvim'))) if !state.pty let args = s:AskPassArgs(dir) + args