git2go: Consolidate errors out of git2go package
This MR consolidates errors hosted in the git2go package to their place of use. This is a preparatory step towards dropping Git2go completely.
Closes Consolidate git2go errors out of git2go package (#5362 - closed).