From c9c406a118480a1f2e96a4b3d2855706ecd131cf Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 30 Jul 2018 19:40:47 -0400 Subject: [PATCH] Fix extra slash generating work tree filenames Closes https://github.com/tpope/vim-fugitive/issues/1069 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6dcd5ee..00bf8a0 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -296,7 +296,7 @@ function! s:repo_translate(spec, ...) dict abort elseif empty(rev) || rev ==# '/.' return self.tree() elseif rev =~# '^\.\=/' - let f = self.tree(substitute(rev, '^\.', '', '')) + let f = self.tree(substitute(rev, '^\.\=/', '', '')) elseif rev =~# '^:[0-3]:/\@!' let f = 'fugitive://' . dir . '//' . rev[1] . '/' . rev[3:-1] elseif rev ==# ':'