Added checking for git ref according to git-check-ref-format rules