From 9e378fd9aac6fff2d2e76e53dc563dfcbe360046 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 21 Feb 2021 14:56:41 -0500 Subject: [PATCH] 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. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index af08fbc..9433cd3 100644 --- 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