rev-parse: fix --verify to error out when passed junk after a good rev