refactoring plugin save, to make sure that commit object exists at time of branch hash update