From 186bf27e05ab8713193b1d1210cd3c79f392445a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 19 Jul 2018 00:42:09 -0400 Subject: [PATCH] Remove dependency on repo in :Gbrowse --- autoload/rhubarb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 3f074be..a4d3303 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -218,7 +218,7 @@ endfunction " Section: Fugitive :Gbrowse support function! rhubarb#fugitive_url(opts, ...) abort - if a:0 || type(a:opts) != type({}) || !has_key(a:opts, 'repo') + if a:0 || type(a:opts) != type({}) return '' endif let root = rhubarb#homepage_for_url(get(a:opts, 'remote'))