diff options
| author | 2026-02-21 12:31:51 +0800 | |
|---|---|---|
| committer | 2026-02-21 12:31:51 +0800 | |
| commit | 2852f9a20613b145fe36a8fde5bfd31ff7e82291 (patch) | |
| tree | 2df08e4a3f21e0db0f0eacf026bf392d3ba760f7 /object/commit_serialize_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 'object/commit_serialize_test.go')
| -rw-r--r-- | object/commit_serialize_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/object/commit_serialize_test.go b/object/commit_serialize_test.go index 9067d511..6db48143 100644 --- a/object/commit_serialize_test.go +++ b/object/commit_serialize_test.go @@ -10,7 +10,7 @@ import ( func TestCommitSerialize(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, "subject\n\nbody") rawBody := testRepo.CatFile(t, "commit", commitID) |
