motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 239089f6e77951ddd69adaee2d86e153aa3c38c6 (tree)
parent f11b80022fe8646c5c8345486edec38820ad0cad
Author: Tim Pope <code@tpope.net>
Date:   Wed, 11 Aug 2021 12:49:37 -0400

Silently ignore trees in s:BlobTemp()

Diffstat:
Mautoload/fugitive.vim | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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]