Don’t check out the restored branch if it is given by name