mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user