mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Silently ignore trees in s:BlobTemp()
This commit is contained in:
@@ -1770,6 +1770,12 @@ function! s:BlobTemp(url) abort
|
||||
let tempparent = fnamemodify(tempfile, ':h')
|
||||
if !isdirectory(tempparent)
|
||||
call mkdir(tempparent, 'p')
|
||||
elseif isdirectory(tempfile)
|
||||
if commit =~# '^\d$' && has('patch-7.4.1107')
|
||||
call delete(tempfile, 'rf')
|
||||
else
|
||||
return ''
|
||||
endif
|
||||
endif
|
||||
if commit =~# '^\d$' || !filereadable(tempfile)
|
||||
let rev = s:DirRev(a:url)[1]
|
||||
|
||||
Reference in New Issue
Block a user