[scripts] allow history upgrade in failure case GitOrigin-RevId: 7c789968bd74719e3a0232422094ae3e9231a044