From afe7dc6f8f5c786d0737bc9b7a9f0b7cee1ae2cd Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 23 Jun 2014 04:04:03 +0900 Subject: [PATCH] Use case-sensitive match --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 8b14265..c107d49 100644 --- a/plug.vim +++ b/plug.vim @@ -713,7 +713,7 @@ function! s:git_valid(spec, check_branch, cd) let ret = 0 elseif a:check_branch let branch = result[0] - let tag = a:spec.branch == 'master' ? '' : + let tag = a:spec.branch ==# 'master' ? '' : \ s:system_chomp('git describe --exact-match --tags HEAD 2>&1') if a:spec.branch != branch && a:spec.branch != tag let msg = 'Invalid branch/tag: ' .