Prevent duplicate commits from being processed in push and fetch.