The example script above doesn't commit after the split, so it is bound to fail. Fixed that in the test case in the attached branch, and also included a proposed fix in there. Please review and consider for merging.
The example script above doesn't commit after the split, so it is bound to fail. Fixed that in the test case in the attached branch, and also included a proposed fix in there. Please review and consider for merging.