Refactor git2go commit and apply tests
What does this MR do
- It uses
repo.ReadCommit
instead of parsing on its own - Provides an interface for testing other signatures (like SSH)
It's the first step to tackling this larger MR: Add support for commit signing using SSH (!5408 - merged)