소스 검색

Use case-sensitive match

Junegunn Choi 11 년 전
부모
커밋
afe7dc6f8f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plug.vim

+ 1 - 1
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: ' .