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.
This commit is contained in:
Tim Pope
2021-02-21 14:56:41 -05:00
parent 783ec701fe
commit 9e378fd9aa

View File

@@ -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