add possibility to pass a block to commits method
speedup multi-repository tests