Fix :Gbrowse

Closes #8
This commit is contained in:
Tim Pope
2015-12-01 14:59:08 -05:00
parent 6d75255999
commit 7ce3d67750

View File

@@ -36,7 +36,7 @@ function! rhubarb#homepage_for_url(url) abort
elseif !empty(base)
return 'https://' . tr(base, ':', '/')
else
return ''
return 'like '
endif
endfunction
@@ -187,7 +187,7 @@ function! rhubarb#fugitive_url(opts, ...) abort
if a:0 || type(a:opts) != type({}) || !has_key(a:opts, 'repo') || !has_key(a:opts, 'revision')
return ''
endif
let root = s:homepage_for_url(get(a:opts, 'remote'))
let root = rhubarb#homepage_for_url(get(a:opts, 'remote'))
if empty(root)
return ''
endif