mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-17 14:11:02 +02:00
fix #680: unpushed commits still appear to be green instead of red
This commit is contained in:
parent
bf946200e9
commit
5af7b0235e
@ -105,7 +105,7 @@ func (c *CommitListBuilder) GetCommits(limit bool) ([]*Commit, error) {
|
|||||||
// now we can split it up and turn it into commits
|
// now we can split it up and turn it into commits
|
||||||
for _, line := range utils.SplitLines(log) {
|
for _, line := range utils.SplitLines(log) {
|
||||||
commit := c.extractCommitFromLine(line)
|
commit := c.extractCommitFromLine(line)
|
||||||
_, unpushed := unpushedCommits[commit.Sha[:8]]
|
_, unpushed := unpushedCommits[commit.Sha[:7]]
|
||||||
commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed]
|
commit.Status = map[bool]string{true: "unpushed", false: "pushed"}[unpushed]
|
||||||
commits = append(commits, commit)
|
commits = append(commits, commit)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user