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 | 517bed409397bc928a85fc128e5e81e4880b6136 (patch) | |
tree | efedc8907eb71b9c98ebafdd9906cf939b3f7a76 /internal/gitaly/hook/prereceive_test.go | |
parent | 600197debaadea93b7b36f43e93493fc5fdc6946 (diff) |
git: Move `ZeroOID` into `ObjectHash` structure
Move the `ZeroOID` variable into the `ObjectHash` structure to make it
dependent on the hash function used.
Diffstat (limited to 'internal/gitaly/hook/prereceive_test.go')
-rw-r--r-- | internal/gitaly/hook/prereceive_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/hook/prereceive_test.go b/internal/gitaly/hook/prereceive_test.go index e1f48171e..f7bd01325 100644 --- a/internal/gitaly/hook/prereceive_test.go +++ b/internal/gitaly/hook/prereceive_test.go @@ -213,7 +213,7 @@ func TestPrereceive_quarantine(t *testing.T) { require.NoError(t, err) stdin := strings.NewReader(fmt.Sprintf("%s %s refs/heads/master", - git.ZeroOID, git.ZeroOID)) + git.ObjectHashSHA1.ZeroOID, git.ObjectHashSHA1.ZeroOID)) var stdout, stderr bytes.Buffer require.NoError(t, hookManager.PreReceiveHook(ctx, repo, nil, |