Fix pull, etc., with bad tags and remote refs locally
Previously, having a bad tag or remote ref in the Git repository/state might break many local commands that inspect repository state.
Previously, having a bad tag or remote ref in the Git repository/state might break many local commands that inspect repository state.