aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/show.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-07 07:45:08 +0000
committerGravatar Runxi Yu2026-06-07 07:45:08 +0000
commit1864d943cb2556f8213356fd864683e7eba4e9bb (patch)
tree9dcad1bde924ec20a8a8c8128ff20e9eb4ee2753 /internal/testgit/show.go
parentinternal/testgit: Add show and fsck (diff)
signatureNo signature
internal/testgit: Use --end-of-options sensibly
Diffstat (limited to 'internal/testgit/show.go')
-rw-r--r--internal/testgit/show.go2
1 files changed, 1 insertions, 1 deletions
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)
}