Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-18 13:33:46 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-20 07:39:11 +0300
commit879da72e1478b558246a8a81553a816b362bdad7 (patch)
tree072c4de69f0613965c13a8c56226ed3bb62ceded /internal/gitaly/service/operations/submodules_test.go
parent1df3c350409a330bd35e5bd3da5baaa1b98a9e6f (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.go2
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)