From 46ae29985d9378391c3e1ec8a50d8229afeea084 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 4 Apr 2017 17:45:37 +0900 Subject: [PATCH] Proper escaping of tag patterns Close #610 --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 7e52441..3f81310 100644 --- a/plug.vim +++ b/plug.vim @@ -1063,7 +1063,7 @@ function! s:update_finish() elseif has_key(spec, 'tag') let tag = spec.tag if tag =~ '\*' - let tags = s:lines(s:system('git tag --list '.string(tag).' --sort -version:refname 2>&1', spec.dir)) + let tags = s:lines(s:system('git tag --list '.s:shellesc(tag).' --sort -version:refname 2>&1', spec.dir)) if !v:shell_error && !empty(tags) let tag = tags[0] call s:log4(name, printf('Latest tag for %s -> %s', spec.tag, tag))