!!! WIP !!! checkout another submodule commit instead of an invalid

TODO: should updating from an invalid commit fail unless forced?
TODO: move some of this into a separate patch for current master

Use modify_sub1 because it won't be the same as the one an invalid commit
will be updated to.