diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-07-18 13:33:46 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-07-20 07:39:11 +0300 |
commit | 879da72e1478b558246a8a81553a816b362bdad7 (patch) | |
tree | 072c4de69f0613965c13a8c56226ed3bb62ceded /internal/gitaly/service/operations/submodules_test.go | |
parent | 1df3c350409a330bd35e5bd3da5baaa1b98a9e6f (diff) |
git: Move `NewObjectIDFromHex()` into `ObjectHash` structure
Move the `NewObjectIDFromHex()` function into the `ObjectHash` structure
to make it dependent on the hash function used.
Diffstat (limited to 'internal/gitaly/service/operations/submodules_test.go')
-rw-r--r-- | internal/gitaly/service/operations/submodules_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/operations/submodules_test.go b/internal/gitaly/service/operations/submodules_test.go index 009186512..9944c7801 100644 --- a/internal/gitaly/service/operations/submodules_test.go +++ b/internal/gitaly/service/operations/submodules_test.go @@ -179,7 +179,7 @@ func TestUserUpdateSubmoduleQuarantine(t *testing.T) { require.NotEmpty(t, response.GetPreReceiveError()) hookOutput := testhelper.MustReadFile(t, outputPath) - oid, err := git.NewObjectIDFromHex(text.ChompBytes(hookOutput)) + oid, err := git.ObjectHashSHA1.FromHex(text.ChompBytes(hookOutput)) require.NoError(t, err) exists, err := repo.HasRevision(ctx, oid.Revision()+"^{commit}") require.NoError(t, err) |