From 66d7d5f3126def2a6ec26426a65aed13802a5d03 Mon Sep 17 00:00:00 2001 From: Glenn Vriesman Date: Mon, 6 Apr 2020 19:26:12 +0200 Subject: [PATCH] fix: fixed gpg breaking terminal Signed-off-by: Glenn Vriesman --- pkg/commands/commit_list_builder.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/commands/commit_list_builder.go b/pkg/commands/commit_list_builder.go index 1204b4882..f4bbc9ddc 100644 --- a/pkg/commands/commit_list_builder.go +++ b/pkg/commands/commit_list_builder.go @@ -109,11 +109,12 @@ func (c *CommitListBuilder) GetCommits(options GetCommitsOptions) ([]*Commit, er cmd := c.getLogCmd(options) err = RunLineOutputCmd(cmd, func(line string) (bool, error) { - commit := c.extractCommitFromLine(line) - _, unpushed := unpushedCommits[commit.ShortSha()] - commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed] - commits = append(commits, commit) - + if strings.Split(line, " ")[0] != "gpg:" { + commit := c.extractCommitFromLine(line) + _, unpushed := unpushedCommits[commit.ShortSha()] + commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed] + commits = append(commits, commit) + } return false, nil }) if err != nil {