From 890cc87724edb0bf408dd4b4007a4df59f0972ca Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 27 Feb 2020 09:33:09 +1100 Subject: fix bug where commits appeared as green despite not being pushed --- 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 aa701d6bd..e08e9a998 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] + _, unpushed := unpushedCommits[commit.Sha[:8]] commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed] commits = append(commits, commit) } -- cgit v1.2.3