diff options
author | David Chen <weichen2000121@gmail.com> | 2020-02-26 18:21:31 -0800 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-27 18:05:41 +1100 |
commit | 5af7b0235e105ee05b9dae037719fbfd0a15c1dc (patch) | |
tree | bf1311b978ae8c07444690b2c5b5272985731ce8 /pkg/commands | |
parent | bf946200e965cc36ce87fe88721ef6312a45fdf5 (diff) |
fix #680: unpushed commits still appear to be green instead of red
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 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) } |