aboutsummaryrefslogtreecommitdiff
path: root/refstore/reftable
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-21 12:31:51 +0800
committerGravatar Runxi Yu2026-02-21 12:31:51 +0800
commit2852f9a20613b145fe36a8fde5bfd31ff7e82291 (patch)
tree2df08e4a3f21e0db0f0eacf026bf392d3ba760f7 /refstore/reftable
parenttestgit: Remove old new-repo helpers and use NewRepo with good RepoOptions (diff)
signatureNo signature
*: Use testgit.NewRepo
Diffstat (limited to 'refstore/reftable')
-rw-r--r--refstore/reftable/reftable_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/refstore/reftable/reftable_test.go b/refstore/reftable/reftable_test.go
index 28201af2..d6345f14 100644
--- a/refstore/reftable/reftable_test.go
+++ b/refstore/reftable/reftable_test.go
@@ -17,7 +17,11 @@ import (
// newBareReftableRepo creates a bare repository that uses reftable ref storage.
func newBareReftableRepo(tb testing.TB, algo objectid.Algorithm) *testgit.TestRepo {
tb.Helper()
- return testgit.NewRepo(tb, algo, testgit.RepoOptions{Bare: true, RefFormat: "reftable"})
+ return testgit.NewRepo(tb, testgit.RepoOptions{
+ ObjectFormat: algo,
+ Bare: true,
+ RefFormat: "reftable",
+ })
}
// openStore opens a reftable store against repoDir/reftable.