Skip to content

Commit

Permalink
vim-scripts.org support is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed May 3, 2017
1 parent 47e0022 commit 54dd253
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
9 changes: 4 additions & 5 deletions autoload/dein/types/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ function! s:type.get_uri(repo, options) abort
endif

if a:repo !~# '/'
" www.vim.org Vim scripts.
let uri = (protocol ==# 'ssh') ?
\ 'git@github.com:vim-scripts/' :
\ protocol . '://github.com/vim-scripts/'
let uri .= name
call dein#util#_error(
\ printf('vim-scripts.org is deprecated.'
\ . ' You can use "vim-scripts/%s" instead.', a:repo))
return ''
else
let uri = (protocol ==# 'ssh' &&
\ (host ==# 'github.com' || host ==# 'bitbucket.com')) ?
Expand Down
3 changes: 0 additions & 3 deletions doc/dein.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ dein#add({repo}[, {options}])
{repo} is the repository URI or local repository directory
path. If {repo} starts with github user name (ex:
"Shougo/dein.vim"), dein will install github plugins.
If {repo} is plugin name only (ex: "taglist.vim"), dein will
install the plugin in vim.org repository (vim-scripts.org:
https://github.com/vim-scripts).
See |dein-options| for what to set in {options}.
Note: You must call it in |dein#begin()| block.

Expand Down
8 changes: 2 additions & 6 deletions test/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function! s:suite.protocol() abort
\ 'https://github.com/vim/vim/archive/master.zip', {}),
\ {})

call s:assert.not_equals(s:type.init(
call s:assert.equals(s:type.init(
\ 'test.zip', {}),
\ {})
call dein#end()
Expand Down Expand Up @@ -50,11 +50,7 @@ function! s:suite.init() abort
\ 'https://github.com:80/Shougo/dein.vim', {}),
\ 'https://github.com/Shougo/dein.vim.git')

call s:assert.equals(s:type.init('L9', {}),
\ { 'type': 'git',
\ 'path': s:base.'github.com/vim-scripts/L9' })
call s:assert.equals(s:type.get_uri('L9', {}),
\ 'https://github.com/vim-scripts/L9.git')
call s:assert.equals(s:type.init('L9', {}), {})

call s:assert.equals(s:type.init(
\ 'https://bitbucket.org/mortonfox/twitvim.git', {}),
Expand Down

0 comments on commit 54dd253

Please sign in to comment.