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>2023-09-07 12:17:11 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-07 16:37:21 +0300
commit58cd14e04dab187aea6f2b77c98b08ea40e7b7c6 (patch)
treeb2894f333d470902b5ee14e9354e8b42641dceb4 /internal/gitaly/hook/prereceive_test.go
parent75134d2080e4248b97847d093e95f131bbd8ad34 (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.go2
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(