Improve how commits are created by sync worker