[fix] improve exceptions generated by Version Control adapters; handle missing commits by syncing the repo and retrying