[PATCH] sha1_name: do not accept .git/refs/snap/.