Skip to content

Commit

Permalink
fix: fixed gpg breaking terminal
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
  • Loading branch information
glvr182 authored and jesseduffield committed Apr 20, 2020
1 parent 59734f1 commit 66d7d5f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/commands/commit_list_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 66d7d5f

Please sign in to comment.