Fix :Gbrowse tagname

This commit is contained in:
Tim Pope 2018-06-25 18:03:02 -04:00
parent 38c69cfebc
commit 2a817bb53a

View File

@ -2222,6 +2222,9 @@ function! s:Browse(bang,line1,count,...) abort
else
let expanded = s:buffer().expand(rev)
endif
if filereadable(s:repo().tree('refs/tags/' . expanded))
let expanded = 'refs/tags/' . expanded
endif
let full = s:repo().translate(expanded)
let commit = ''
if full =~? '^fugitive:'