From 1864d943cb2556f8213356fd864683e7eba4e9bb Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 7 Jun 2026 07:45:08 +0000 Subject: internal/testgit: Use --end-of-options sensibly --- internal/testgit/show.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/testgit/show.go') diff --git a/internal/testgit/show.go b/internal/testgit/show.go index 31acb9d3..93ecac2c 100644 --- a/internal/testgit/show.go +++ b/internal/testgit/show.go @@ -11,7 +11,7 @@ import ( func (repo *Repo) ShowFormat(tb testing.TB, oid id.ObjectID, format string) ([]byte, error) { tb.Helper() - stdout, err := repo.Run(tb, nil, "git", "show", "--no-patch", "--no-color", "--format="+format, oid.String()) + stdout, err := repo.Run(tb, nil, "git", "show", "--no-patch", "--no-color", "--format="+format, "--end-of-options", oid.String()) if err != nil { return nil, fmt.Errorf("show --format=%q %s: %w", format, oid, err) } -- cgit v1.3.1-10-gc9f91