From 9b172688e436098b3433b677152943bb875a16fc Mon Sep 17 00:00:00 2001 From: deresmos Date: Mon, 7 May 2018 19:54:38 +0900 Subject: [PATCH] Fix: AgitDiff error --- autoload/agit/git.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/agit/git.vim b/autoload/agit/git.vim index 40bfee5..2d35e22 100644 --- a/autoload/agit/git.vim +++ b/autoload/agit/git.vim @@ -157,7 +157,7 @@ function! s:git.catfile(hash, path) if a:hash == 'nextpage' let catfile = '' elseif a:hash == 'unstaged' - let catfile = join(readfile(a:path), "\n") + let catfile = join(readfile(self.to_abspath(relpath)), "\n") elseif a:hash == 'staged' let catfile = agit#git#exec('cat-file -p ":' . relpath . '"', self.git_root) else