git-check-ref-format: reject funny ref names.