From bda11a7b87844303fa9d8d14b9469136830f90c7 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 21 Feb 2026 12:27:39 +0800 Subject: testgit: Add RepoOptions and NewRepo for ref format and bare. --- internal/testgit/repo_refs.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/testgit/repo_refs.go') diff --git a/internal/testgit/repo_refs.go b/internal/testgit/repo_refs.go index 258d2787..eb09a78b 100644 --- a/internal/testgit/repo_refs.go +++ b/internal/testgit/repo_refs.go @@ -13,6 +13,12 @@ func (testRepo *TestRepo) UpdateRef(tb testing.TB, name string, id objectid.Obje testRepo.Run(tb, "update-ref", name, id.String()) } +// DeleteRef deletes a ref. +func (testRepo *TestRepo) DeleteRef(tb testing.TB, name string) { + tb.Helper() + testRepo.Run(tb, "update-ref", "-d", name) +} + // SymbolicRef sets a symbolic reference target. func (testRepo *TestRepo) SymbolicRef(tb testing.TB, name, target string) { tb.Helper() -- cgit v1.3.1-10-gc9f91