Skip to content

Commit

Permalink
Fix link to branch log
Browse files Browse the repository at this point in the history
  • Loading branch information
osandov authored and sudotac committed Jul 13, 2024
1 parent c60d827 commit b3e91a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/cgit/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function! cgit#fugitive#handler(opts, ...)
" If the branch/tag doesn't exist upstream, the URL won't be valid
" Could check upstream refs?
if path =~# '^\.git/refs/heads/'
return root . '/log/' . path[16:-1]
return root . '/log/?h=' . path[16:-1]
elseif path =~# '^\.git/refs/tags/'
return root . '/tag/?h=' . path[15:-1]
elseif path =~# '^\.git/refs/.'
Expand Down

0 comments on commit b3e91a3

Please sign in to comment.