Skip to content

Commit

Permalink
Fix: removing hex character from git log output (#94)
Browse files Browse the repository at this point in the history
* fix for weird git log output behavior at client

* fix latest
  • Loading branch information
subhashish-devtron authored Mar 11, 2024
1 parent c6b909d commit 4bacf5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/git/GitFormatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func parseFormattedLogOutput(out string) ([]GitCommitFormat, error) {

logOut = logOut[1 : len(logOut)-2] // trim surround characters (surrounding quotes and trailing comma)
logOut = strings.Join([]string{"[", "]"}, logOut)
logOut = strings.ReplaceAll(logOut, "\\x", "")

var gitCommitFormattedList []GitCommitFormat
err := json.Unmarshal([]byte(logOut), &gitCommitFormattedList)
Expand Down

0 comments on commit 4bacf5f

Please sign in to comment.