Silently ignore trees in s:BlobTemp()

This commit is contained in:
Tim Pope
2021-08-11 12:49:37 -04:00
parent f11b80022f
commit 239089f6e7

View File

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