aboutsummaryrefslogtreecommitdiff
path: root/objectstore/packed
diff options
context:
space:
mode:
Diffstat (limited to 'objectstore/packed')
-rw-r--r--objectstore/packed/helpers_test.go2
-rw-r--r--objectstore/packed/read_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/objectstore/packed/helpers_test.go b/objectstore/packed/helpers_test.go
index 5af44f66..f8cbd439 100644
--- a/objectstore/packed/helpers_test.go
+++ b/objectstore/packed/helpers_test.go
@@ -68,7 +68,7 @@ func expectedRawObject(t *testing.T, testRepo *testgit.TestRepo, id objectid.Obj
func createPackedFixtureRepo(t *testing.T, algo objectid.Algorithm) (*testgit.TestRepo, []objectid.ObjectID) {
t.Helper()
- testRepo := testgit.NewBareRepo(t, algo)
+ testRepo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: algo, Bare: true})
blobID, treeID, commitID := testRepo.MakeCommit(t, "packed store base commit")
testRepo.Run(t, "update-ref", "refs/heads/main", commitID.String())
tagID := testRepo.TagAnnotated(t, "v1.0.0", commitID, "packed-store-tag")
diff --git a/objectstore/packed/read_test.go b/objectstore/packed/read_test.go
index 9244d573..0eb78366 100644
--- a/objectstore/packed/read_test.go
+++ b/objectstore/packed/read_test.go
@@ -136,7 +136,7 @@ func TestPackedStoreNewValidation(t *testing.T) {
}
func TestPackedStoreInvalidAlgorithm(t *testing.T) {
- testRepo := testgit.NewBareRepo(t, objectid.AlgorithmSHA1)
+ testRepo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: objectid.AlgorithmSHA1, Bare: true})
root, err := os.OpenRoot(testRepo.Dir())
if err != nil {
t.Fatalf("OpenRoot(%q): %v", testRepo.Dir(), err)