diff options
| author | 2026-02-21 12:31:51 +0800 | |
|---|---|---|
| committer | 2026-02-21 12:31:51 +0800 | |
| commit | 2852f9a20613b145fe36a8fde5bfd31ff7e82291 (patch) | |
| tree | 2df08e4a3f21e0db0f0eacf026bf392d3ba760f7 /refstore/packed | |
| parent | testgit: Remove old new-repo helpers and use NewRepo with good RepoOptions (diff) | |
| signature | No signature | |
*: Use testgit.NewRepo
Diffstat (limited to 'refstore/packed')
| -rw-r--r-- | refstore/packed/packed_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refstore/packed/packed_test.go b/refstore/packed/packed_test.go index 2c984cb9..c8f7f99c 100644 --- a/refstore/packed/packed_test.go +++ b/refstore/packed/packed_test.go @@ -32,7 +32,7 @@ func openPackedRefStoreFromRepo(t *testing.T, repoPath string, algo objectid.Alg func TestPackedResolveAndPeeled(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}) _, _, commitID := testRepo.MakeCommit(t, "packed refs commit") testRepo.UpdateRef(t, "refs/heads/main", commitID) tagID := testRepo.TagAnnotated(t, "v1.0.0", commitID, "annotated tag") @@ -86,7 +86,7 @@ func TestPackedResolveAndPeeled(t *testing.T) { func TestPackedListAndShorten(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}) _, _, commitID := testRepo.MakeCommit(t, "packed refs list commit") testRepo.UpdateRef(t, "refs/heads/main", commitID) testRepo.UpdateRef(t, "refs/tags/main", commitID) |
