Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ikysil opened this issue Jan 3, 2025 · 1 comment · Fixed by #4151
Closed

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

ikysil opened this issue Jan 3, 2025 · 1 comment · Fixed by #4151
Labels
bug Something isn't working

Comments

@ikysil
Copy link

ikysil commented Jan 3, 2025

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.

@ikysil ikysil added the bug Something isn't working label Jan 3, 2025
@stefanhaller
Copy link
Collaborator

Here's a fix: #4151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants