mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
support branches with no upstream
This commit is contained in:
@ -111,14 +111,15 @@ func (c *CommitListBuilder) GetCommits(opts GetCommitsOptions) ([]*Commit, error
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
passedFirstPushedCommit := false
|
||||||
firstPushedCommit, err := c.getFirstPushedCommit(opts.RefName)
|
firstPushedCommit, err := c.getFirstPushedCommit(opts.RefName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
// must have no upstream branch so we'll consider everything as pushed
|
||||||
|
passedFirstPushedCommit = true
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := c.getLogCmd(opts)
|
cmd := c.getLogCmd(opts)
|
||||||
|
|
||||||
passedFirstPushedCommit := false
|
|
||||||
err = RunLineOutputCmd(cmd, func(line string) (bool, error) {
|
err = RunLineOutputCmd(cmd, func(line string) (bool, error) {
|
||||||
if strings.Split(line, " ")[0] != "gpg:" {
|
if strings.Split(line, " ")[0] != "gpg:" {
|
||||||
commit := c.extractCommitFromLine(line)
|
commit := c.extractCommitFromLine(line)
|
||||||
|
Reference in New Issue
Block a user