'Could not execute prep: Repo in inconsistent state: HEAD is a detached symbolic reference as it points to ...'
Ok, this is expected, because we can't tell what the branch name is anymore (because we aren't on a branch). The solution here is to use --dist, or to make a branch out of whatever random head we're checking out.