mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Fix yellow/red coloring of pushed/unpushed commits in branch commits panel (#2448)
This commit is contained in:
parent
1fc8823825
commit
979c3d6278
2 changed files with 16 additions and 1 deletions
|
@ -401,7 +401,9 @@ func ignoringWarnings(commandOutput string) string {
|
|||
func (self *CommitLoader) getFirstPushedCommit(refName string) (string, error) {
|
||||
output, err := self.cmd.
|
||||
New(
|
||||
fmt.Sprintf("git merge-base %s %s@{u}", self.cmd.Quote(refName), self.cmd.Quote(refName)),
|
||||
fmt.Sprintf("git merge-base %s %s@{u}",
|
||||
self.cmd.Quote(refName),
|
||||
self.cmd.Quote(strings.TrimPrefix(refName, "refs/heads/"))),
|
||||
).
|
||||
DontLog().
|
||||
RunWithOutput()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue