diff options
| author | 2026-02-21 12:31:51 +0800 | |
|---|---|---|
| committer | 2026-02-21 12:31:51 +0800 | |
| commit | 2852f9a20613b145fe36a8fde5bfd31ff7e82291 (patch) | |
| tree | 2df08e4a3f21e0db0f0eacf026bf392d3ba760f7 /objectstore/packed/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/packed/read_test.go')
| -rw-r--r-- | objectstore/packed/read_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
