Don't pass stage number as commit to :Gbrowse handler
This commit is contained in:
parent
9f768cd3bc
commit
ac904e806d
@ -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,'^/',':'))
|
||||||
|
Loading…
Reference in New Issue
Block a user