From 5af7b0235e105ee05b9dae037719fbfd0a15c1dc Mon Sep 17 00:00:00 2001 From: David Chen Date: Wed, 26 Feb 2020 18:21:31 -0800 Subject: fix #680: unpushed commits still appear to be green instead of red --- pkg/commands/commit_list_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/commit_list_builder.go b/pkg/commands/commit_list_builder.go index e08e9a998..d4dce7433 100644 --- a/pkg/commands/commit_list_builder.go +++ b/pkg/commands/commit_list_builder.go @@ -105,7 +105,7 @@ func (c *CommitListBuilder) GetCommits(limit bool) ([]*Commit, error) { // now we can split it up and turn it into commits for _, line := range utils.SplitLines(log) { commit := c.extractCommitFromLine(line) - _, unpushed := unpushedCommits[commit.Sha[:8]] + _, unpushed := unpushedCommits[commit.Sha[:7]] commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed] commits = append(commits, commit) } -- cgit v1.2.3