Skip to content

in commits, if yu (aka Copy URL of commit) it always assumes the remote is named origin #4746

@Arniiiii

Description

@Arniiiii

Describe the bug
A clear and concise description of what the bug is.
in commits, if yu (aka Copy URL of commit) it always assumes the remote is origin

To Reproduce
Steps to reproduce the behavior:

  1. Make sure you are on branch that has upstream remote not on remote named origin
  2. Go to 'Commits'
  3. Press yu on a commit
  4. See error and confirmation of the problem in Command log

Expected behavior
A clear and concise description of what you expected to happen.

Use branch's remote's name/URL .

Screenshots
If applicable, add screenshots to help explain your problem.

Version info:
Run lazygit --version and paste the result here

commit=, build date=, build source=unknown, version=0.45.2, os=linux, arch=amd64, git version=2.49.0

Run git --version and paste the result here

git version 2.49.0

OS: Gentoo Linux

UPD: I can confirm that lazygit-0.52.0 fails in the same way

UPD: I can confirm that lazygit-0.53.0 fails in the same way

Additional context
Add any other context about the problem here.

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

I'll check little bit later if last version has the problem

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