diff options
| author | 2026-02-21 12:31:51 +0800 | |
|---|---|---|
| committer | 2026-02-21 12:31:51 +0800 | |
| commit | 2852f9a20613b145fe36a8fde5bfd31ff7e82291 (patch) | |
| tree | 2df08e4a3f21e0db0f0eacf026bf392d3ba760f7 /objectstore/loose/read_test.go | |
| parent | testgit: Remove old new-repo helpers and use NewRepo with good RepoOptions (diff) | |
| signature | No signature | |
*: Use testgit.NewRepo
Diffstat (limited to 'objectstore/loose/read_test.go')
| -rw-r--r-- | objectstore/loose/read_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/objectstore/loose/read_test.go b/objectstore/loose/read_test.go index 8663ef1f..d125629a 100644 --- a/objectstore/loose/read_test.go +++ b/objectstore/loose/read_test.go @@ -15,7 +15,7 @@ import ( func TestLooseStoreReadAgainstGit(t *testing.T) { testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) { - testRepo := testgit.NewBareRepo(t, algo) + testRepo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: algo, Bare: true}) blobID := testRepo.HashObject(t, "blob", []byte("blob body\n")) _, treeID, commitID := testRepo.MakeCommit(t, "subject\n\nbody") tagID := testRepo.TagAnnotated(t, "v1", commitID, "tag message") @@ -94,7 +94,7 @@ func TestLooseStoreReadAgainstGit(t *testing.T) { func TestLooseStoreErrors(t *testing.T) { testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) { - testRepo := testgit.NewBareRepo(t, algo) + testRepo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: algo, Bare: true}) store := openLooseStore(t, testRepo.Dir(), algo) notFoundID, err := objectid.ParseHex(algo, strings.Repeat("0", algo.HexLen())) |
