When re-dispatching tasks, the branch from a previous run may still exist. Instead of failing with "a branch named X already exists", reset the existing branch to the base and check it out.