Skip to content

Commit 78b219b

Browse files
committed
refactor: convert remaining call sites and rewrite tests
Convert repo_tree.go LsTree to use gitRun with local args, removing the last NewCommand call site. Rewrite command_test.go to test the new gitRun/gitPipeline helpers directly, removing tests for the deleted Command struct.
1 parent 80933ab commit 78b219b

17 files changed

Lines changed: 455 additions & 566 deletions

blob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ func (b *Blob) Bytes(ctx context.Context) ([]byte, error) {
3535
// Pipeline reads the content of the blob and pipes stdout and stderr to
3636
// supplied io.Writer.
3737
func (b *Blob) Pipeline(ctx context.Context, stdout, stderr io.Writer) error {
38-
return NewCommand(ctx, "show", b.id.String()).RunInDirPipeline(stdout, stderr, b.parent.repo.path)
38+
return gitPipeline(ctx, b.parent.repo.path, []string{"show", b.id.String()}, nil, stdout, stderr, nil)
3939
}

0 commit comments

Comments
 (0)