From 239089f6e77951ddd69adaee2d86e153aa3c38c6 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 11 Aug 2021 12:49:37 -0400 Subject: [PATCH] Silently ignore trees in s:BlobTemp() --- autoload/fugitive.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 8c23c04..0936043 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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]