1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-12 23:41:54 +03:00

Fix yellow/red coloring of pushed/unpushed commits in branch commits panel (#2448)

This commit is contained in:
Stefan Haller
2023-02-19 00:13:46 +01:00
committed by GitHub
parent 1fc8823825
commit 979c3d6278
2 changed files with 16 additions and 1 deletions

View File

@ -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()