diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-07 12:17:11 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-07 16:37:21 +0300 |
commit | 58cd14e04dab187aea6f2b77c98b08ea40e7b7c6 (patch) | |
tree | b2894f333d470902b5ee14e9354e8b42641dceb4 /internal/gitaly/hook/prereceive_test.go | |
parent | 75134d2080e4248b97847d093e95f131bbd8ad34 (diff) |
localrepo: Refactor `WriteBlob()` to accept a configuration
Refactor `WriteBlob()` to accept a configuration. This makes the
function more readily extensible and also makes it clearer that the
path argument is in fact optional.
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 930ca8a87..1525e096b 100644 --- a/internal/gitaly/hook/prereceive_test.go +++ b/internal/gitaly/hook/prereceive_test.go @@ -218,7 +218,7 @@ func TestPrereceive_quarantine(t *testing.T) { require.NoError(t, err) quarantinedRepo := localrepo.NewTestRepo(t, cfg, quarantine.QuarantinedRepo()) - blobID, err := quarantinedRepo.WriteBlob(ctx, "", strings.NewReader("allyourbasearebelongtous")) + blobID, err := quarantinedRepo.WriteBlob(ctx, strings.NewReader("allyourbasearebelongtous"), localrepo.WriteBlobConfig{}) require.NoError(t, err) hookManager := NewManager(cfg, config.NewLocator(cfg), gittest.NewCommandFactory(t, cfg), nil, gitlab.NewMockClient( |