Merge branch 'stable-2.6'

* stable-2.6:
  Avoid validating valid commits two times in ReceiveCommits.