get_sha1: warn about full or short object names that look like refs