diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-27 09:33:09 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-27 09:33:09 +1100 |
commit | 890cc87724edb0bf408dd4b4007a4df59f0972ca (patch) | |
tree | 08980f60f7110bfae4bc90cc46b6e35233ae66f6 /pkg/commands | |
parent | 8eb0b0f4caee4044acd278eb18c901bc7312dfe3 (diff) |
fix bug where commits appeared as green despite not being pushedv0.15.4
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/commit_list_builder.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |