Support insteadOf for Gbrowse (#874)

Fixes #873
This commit is contained in:
fREW Schmidt 2017-02-07 15:49:17 -08:00 committed by Tim Pope
parent 444ba9fda5
commit 245ce889e2

View File

@ -2295,9 +2295,9 @@ function! s:Browse(bang,line1,count,...) abort
if empty(remote)
let remote = '.'
let raw = s:repo().git_chomp('config','remote.origin.url')
let raw = s:repo().git_chomp('remote','get-url','origin')
else
let raw = s:repo().git_chomp('config','remote.'.remote.'.url')
let raw = s:repo().git_chomp('remote','get-url',remote)
endif
if raw ==# ''
let raw = remote