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