We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84151e4 commit f94d178Copy full SHA for f94d178
cmd/cz/cz.go
@@ -4,6 +4,7 @@ import (
4
"errors"
5
"fmt"
6
7
+ "github.com/shipengqi/golib/convutil"
8
"github.com/spf13/cobra"
9
10
"github.com/shipengqi/commitizen/internal/config"
@@ -37,7 +38,7 @@ func New() *cobra.Command {
37
38
}
39
40
if o.DryRun {
- fmt.Println(string(msg))
41
+ fmt.Println(convutil.B2S(msg))
42
return nil
43
44
output, err := git.Commit(msg, o.GitOptions)
internal/git/git.go
@@ -41,7 +41,7 @@ func WorkingTreeRoot() (path string, err error) {
if err != nil {
return "", err
- return strings.TrimSpace(string(output)), nil
+ return strings.TrimSpace(output), nil
45
46
47
func ExecPath() (string, error) {
0 commit comments