Skip to content

Upstream reset offers local branch name instead of remote branch name #4148

@ikysil

Description

@ikysil

Describe the bug
Upstream reset offers local branch name instead of remote branch name.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout a remote branch branch-remote
  2. Rename local branch using 'R' to branch-local
  3. Click 'Upstream' then 'Reset'
  4. The popup offers reset options using local branch name
  5. Select any option (except 'Cancel')
  6. Observe error: fatal: ambiguous argument 'origin/branch-local': unknown revision or path not in the working tree.

Expected behavior
Upstream reset actions should use remote branch name.

For comparison, upstream rebase actions properly use remote branch name.

Screenshots
N/A

Version info:

$ lazygit --version
commit=, build date=, build source=homebrew, version=0.44.1, os=linux, arch=amd64, git version=2.43.0
$ git --version
git version 2.43.0

Additional context
N/A

Note: please try updating to the latest version or manually building the latest master to see if the issue still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions