Correcting sync bug where empty commits are created and pushed