Use case-sensitive match

This commit is contained in:
Junegunn Choi 2014-06-23 04:04:03 +09:00
parent 8863a3a53c
commit afe7dc6f8f

View file

@ -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: ' .