dev-vcs/lazygit: drop old

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2020-07-12 02:48:52 +03:00
parent a00e76111f
commit 2ef8cefbb0
3 changed files with 0 additions and 70 deletions

View File

@@ -1,32 +0,0 @@
From 7b7f7f0696d94c01852290fa3552caffa0b2af7b Mon Sep 17 00:00:00 2001
From: Glenn Vriesman <glenn.vriesman@gmail.com>
Date: Mon, 6 Apr 2020 19:26:12 +0200
Subject: [PATCH] fix: fixed gpg breaking terminal
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
---
pkg/commands/commit_list_builder.go | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/github.com/jesseduffield/lazygit/pkg/commands/commit_list_builder.go b/pkg/commands/commit_list_builder.go
index 1204b488..f4bbc9dd 100644
--- a/src/github.com/jesseduffield/lazygit/pkg/commands/commit_list_builder.go
+++ b/src/github.com/jesseduffield/lazygit/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 {