1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-07 01:09:45 +02:00

fix: fixed gpg breaking terminal

Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
This commit is contained in:
Glenn Vriesman
2020-04-06 19:26:12 +02:00
committed by Jesse Duffield
parent 59734f1069
commit 66d7d5f312

View File

@ -109,11 +109,12 @@ func (c *CommitListBuilder) GetCommits(options GetCommitsOptions) ([]*Commit, er
cmd := c.getLogCmd(options) cmd := c.getLogCmd(options)
err = RunLineOutputCmd(cmd, func(line string) (bool, error) { err = RunLineOutputCmd(cmd, func(line string) (bool, error) {
commit := c.extractCommitFromLine(line) if strings.Split(line, " ")[0] != "gpg:" {
_, unpushed := unpushedCommits[commit.ShortSha()] commit := c.extractCommitFromLine(line)
commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed] _, unpushed := unpushedCommits[commit.ShortSha()]
commits = append(commits, commit) commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed]
commits = append(commits, commit)
}
return false, nil return false, nil
}) })
if err != nil { if err != nil {