Try finding tag name before falling back to commit hash.