mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 21:03:53 -05:00
Don't pass stage number as commit to :Gbrowse handler
This commit is contained in:
@@ -2191,7 +2191,7 @@ function! s:Browse(bang,line1,count,...) abort
|
|||||||
let full = s:repo().translate(expanded)
|
let full = s:repo().translate(expanded)
|
||||||
let commit = ''
|
let commit = ''
|
||||||
if full =~# '^fugitive://'
|
if full =~# '^fugitive://'
|
||||||
let commit = matchstr(full,'://.*//\zs\w\+')
|
let commit = matchstr(full,'://.*//\zs\w\w\+')
|
||||||
let path = matchstr(full,'://.*//\w\+\zs/.*')
|
let path = matchstr(full,'://.*//\w\+\zs/.*')
|
||||||
if commit =~ '..'
|
if commit =~ '..'
|
||||||
let type = s:repo().git_chomp('cat-file','-t',commit.s:sub(path,'^/',':'))
|
let type = s:repo().git_chomp('cat-file','-t',commit.s:sub(path,'^/',':'))
|
||||||
|
|||||||
Reference in New Issue
Block a user