fix an issue where git would revert by one commit after deploy