Skip to content

Commit

Permalink
fix: fix build error for empty merge
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Sep 15, 2020
1 parent b2f2e9e commit 8022527
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/application/git/log_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ func ParseLog(text string) {
str = strings.Split(str, auth[1])[1]
dat := dateReg.FindStringSubmatch(str)
msg := strings.Split(str, dat[0])[1]
msg = msg[1:]
if len(msg) > 1 {
msg = msg[1:]
}

currentCommitMessage = CommitMessage{id[1], auth[1][1:], dat[0], msg, nil}
} else if changesReg.MatchString(text) {
Expand Down

0 comments on commit 8022527

Please sign in to comment.