Skip to content

Commit 2d9d10d

Browse files
committed
chore(cmd): error print in calling cmd
1 parent d2f164b commit 2d9d10d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cmd/sibyl/subs/diff/cmd_diff.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ func NewDiffCommand() *cobra.Command {
3636
// because go-git 's patch has some bugs ...
3737
gitDiffCmd := exec.Command("git", "diff", diffFrom, diffTo)
3838
gitDiffCmd.Dir = diffSrc
39-
data, err := gitDiffCmd.Output()
39+
data, err := gitDiffCmd.CombinedOutput()
4040
if err != nil {
41+
core.Log.Errorf("git cmd error: %s", data)
4142
panic(err)
4243
}
4344
results, err = parsePatchRaw(diffSrc, data)

0 commit comments

Comments
 (0)
⌂ 换网址