Correct commit sort for receive hook