From 389cbe73cd96e39600b72a41e0f6ee6314f13ed5 Mon Sep 17 00:00:00 2001 From: somini Date: Sat, 23 Jun 2018 17:45:14 +0100 Subject: [PATCH] Use the correct Fugitive API --- plugin/gv.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gv.vim b/plugin/gv.vim index 41ac4bd..9221a94 100644 --- a/plugin/gv.vim +++ b/plugin/gv.vim @@ -249,7 +249,7 @@ function! s:list(fugitive_repo, log_opts) let git_args = ['log'] + default_opts + a:log_opts let git_log_cmd = call(a:fugitive_repo.git_command, git_args, a:fugitive_repo) - let repo_short_name = fnamemodify(substitute(a:fugitive_repo.dir(), '[\\/]\.git[\\/]\?$', '', ''), ':t') + let repo_short_name = fnamemodify(a:fugitive_repo.tree(), ':t') let b:gv_opts = a:log_opts let b:gv_repo_short_name = repo_short_name let bufname = repo_short_name.' '.join(a:log_opts)