Two cases: trying to delete the currently checked-out branch, or deleting the upstream of a branch that doesn't have one.