mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-10 10:51:50 +08:00
Fix invalid diagnosis of PlugStatus with wildcard tags (#619)
This commit is contained in:
committed by
Junegunn Choi
parent
580f0a559c
commit
1d3c88292b
2
plug.vim
2
plug.vim
@@ -2022,7 +2022,7 @@ function! s:git_validate(spec, check_branch)
|
||||
" Check tag
|
||||
if has_key(a:spec, 'tag')
|
||||
let tag = s:system_chomp('git describe --exact-match --tags HEAD 2>&1', a:spec.dir)
|
||||
if a:spec.tag !=# tag
|
||||
if a:spec.tag !=# tag && a:spec.tag !~ '\*'
|
||||
let err = printf('Invalid tag: %s (expected: %s). Try PlugUpdate.',
|
||||
\ (empty(tag) ? 'N/A' : tag), a:spec.tag)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user