Fix issue with symlinked tmp dir
This commit is contained in:
parent
37295383ff
commit
ceb18eeceb
@ -979,7 +979,7 @@ function! s:Edit(cmd,bang,...) abort
|
|||||||
diffupdate
|
diffupdate
|
||||||
return 'redraw|echo '.string(':!'.git.' '.args)
|
return 'redraw|echo '.string(':!'.git.' '.args)
|
||||||
else
|
else
|
||||||
let temp = tempname()
|
let temp = resolve(tempname())
|
||||||
let s:temp_files[temp] = s:repo().dir()
|
let s:temp_files[temp] = s:repo().dir()
|
||||||
silent execute a:cmd.' '.temp
|
silent execute a:cmd.' '.temp
|
||||||
if a:cmd =~# 'pedit'
|
if a:cmd =~# 'pedit'
|
||||||
@ -1446,7 +1446,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
|||||||
if a:count
|
if a:count
|
||||||
execute 'write !'.substitute(basecmd,' blame ',' blame -L '.a:line1.','.a:line2.' ','g')
|
execute 'write !'.substitute(basecmd,' blame ',' blame -L '.a:line1.','.a:line2.' ','g')
|
||||||
else
|
else
|
||||||
let error = tempname()
|
let error = resolve(tempname())
|
||||||
let temp = error.'.fugitiveblame'
|
let temp = error.'.fugitiveblame'
|
||||||
if &shell =~# 'csh'
|
if &shell =~# 'csh'
|
||||||
silent! execute '%write !('.basecmd.' > '.temp.') >& '.error
|
silent! execute '%write !('.basecmd.' > '.temp.') >& '.error
|
||||||
@ -2053,7 +2053,9 @@ augroup END
|
|||||||
" }}}1
|
" }}}1
|
||||||
" Temp files {{{1
|
" Temp files {{{1
|
||||||
|
|
||||||
let s:temp_files = {}
|
if !exists('s:temp_files')
|
||||||
|
let s:temp_files = {}
|
||||||
|
endif
|
||||||
|
|
||||||
augroup fugitive_temp
|
augroup fugitive_temp
|
||||||
autocmd!
|
autocmd!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user