graphql: constructors for git resolvers, sub-repo perms testing
Created by: bobheadxi
- create constructors for
GitCommitResolver
,GitTreeEntryResolver
and enforce them - convert
TestGitTreeEntry
test to use client mock - convert
TestGitTree
to use database mock
Closes https://github.com/sourcegraph/sourcegraph/issues/27417 , makes https://github.com/sourcegraph/sourcegraph/issues/27448 easier potentially, part of https://github.com/sourcegraph/sourcegraph/issues/26645