generate_lists: start with clean checkout
This should be used always when we apply patches as otherwise git tries to do rebase on pull and if that passes then we try to reapply all patches which fails. The cleanup simply nukes the original git history thus we prevent these issues.