From 245ce889e2a6eb318cec865cf787e7bb0cb8aa95 Mon Sep 17 00:00:00 2001 From: fREW Schmidt Date: Tue, 7 Feb 2017 15:49:17 -0800 Subject: [PATCH] Support insteadOf for Gbrowse (#874) Fixes #873 --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 91d9685..8d02b23 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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