Skip to content

Commit

Permalink
Use the correct Fugitive API
Browse files Browse the repository at this point in the history
  • Loading branch information
somini committed Jun 20, 2020
1 parent ee930c7 commit 389cbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/gv.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 389cbe7

Please sign in to comment.