diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fugitive-gitea.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/fugitive-gitea.vim b/plugin/fugitive-gitea.vim index 162c139..2cdb9ac 100644 --- a/plugin/fugitive-gitea.vim +++ b/plugin/fugitive-gitea.vim @@ -20,6 +20,9 @@ function! s:giteaserver_url(opts, ...) abort return '' endif + if match(a:opts.remote, 'ssh://') >= 0 + let repo = substitute(repo, ':\d\+', '', '') + endif if index(domains, 'http://' . matchstr(repo, '^[^:/]*')) >= 0 let root = 'http://'.repo |