Checkout required profile branch just before we write to the workspace