ensure we do not overwrite the last commit with nonsense when there are no new commits to process