From 65346f0926c9f7be0c37b4a57bd0820023ac2361 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 16 Jul 2018 20:29:27 -0400 Subject: [PATCH] Fix readfile --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 5fce238..213ca82 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -572,9 +572,9 @@ function! fugitive#readfile(url, ...) abort if entry[2] !=# 'blob' return [] endif - let [dir, commit, file] = s:DirCommitFile(a:url) + let [dir, rev] = s:DirRev(a:url) let cmd = g:fugitive_git_executable . ' --git-dir=' . s:shellesc(dir) . - \ ' cat-file blob ' . s:shellesc(commit . ':' . file[1:-1]) + \ ' cat-file blob ' . s:shellesc(rev) if max > 0 && s:executable('head') let cmd .= '|head -' . max endif