Skip to content

Commit e69169f

Browse files
committed
Fix
1 parent cda6a37 commit e69169f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/git/gitcmd/command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestRunWithContextStd(t *testing.T) {
3636
stdout, stderr, err = cmd.RunStdString(t.Context())
3737
if assert.Error(t, err) {
3838
assert.Equal(t, stderr, err.Stderr())
39-
assert.Contains(t, stderr, "unknown option:")
39+
assert.Contains(t, err.Stderr(), "unknown option:")
4040
assert.Contains(t, err.Error(), "exit status 129 - unknown option:")
4141
assert.Empty(t, stdout)
4242
}

modules/git/repo_tree.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func (repo *Repository) CommitTree(author, committer *Signature, tree *Tree, opt
6464
WithDir(repo.Path).
6565
WithStdin(messageBytes).
6666
WithStdout(stdout).
67+
WithStderr(stderr).
6768
Run(repo.Ctx)
6869
if err != nil {
6970
return nil, gitcmd.ConcatenateError(err, stderr.String())

0 commit comments

Comments
 (0)