jesseduffield / jesseduffield/lazygit

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

Open
#4,746 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**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](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.