This doesn't seem right. The previous conditional meant "always fetch unless the ref is a tag and we have the tag".