diff options
| author | 2026-06-07 07:45:08 +0000 | |
|---|---|---|
| committer | 2026-06-07 07:45:08 +0000 | |
| commit | 1864d943cb2556f8213356fd864683e7eba4e9bb (patch) | |
| tree | 9dcad1bde924ec20a8a8c8128ff20e9eb4ee2753 /internal/testgit/object.go | |
| parent | internal/testgit: Add show and fsck (diff) | |
| signature | No signature | |
internal/testgit: Use --end-of-options sensibly
Diffstat (limited to 'internal/testgit/object.go')
| -rw-r--r-- | internal/testgit/object.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/testgit/object.go b/internal/testgit/object.go index cbdfce76..3d6f476c 100644 --- a/internal/testgit/object.go +++ b/internal/testgit/object.go @@ -33,7 +33,7 @@ func (repo *Repo) HashObject(tb testing.TB, ty typ.Type, body io.Reader) (id.Obj func (repo *Repo) CatFile(tb testing.TB, ty typ.Type, oid id.ObjectID) ([]byte, error) { tb.Helper() - stdout, err := repo.Run(tb, nil, "git", "cat-file", ty.Name(), oid.String()) + stdout, err := repo.Run(tb, nil, "git", "cat-file", ty.Name(), "--end-of-options", oid.String()) if err != nil { return nil, fmt.Errorf("cat-file: %w", err) } |
