jesseduffield / jesseduffield/lazygit

Commits are ignored when authenticating with ssh-agent

Open
#1,131 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**
- When authenticating with ssh-agent for private Github repository, we can get git log in `Log` view, but on clicking the branch, the `Commit` view shows `No commits`.
- When authenticating with normal SSH keys, we can assume the `Commit` view contains correct logs.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to `Local Branches`
2. Enter to view `Commit` view

**Expected behavior**
Regardless of the authentication methods, we can fetch the correct `Commit`.

**Screenshots**

- With ssh user agent on ubuntu 16.04

スクリーンショット 2021-01-01 3 30 39
スクリーンショット 2021-01-01 3 30 50

- With SSH keys on mac `version=0.24.2`

スクリーンショット 2021-01-01 3 48 37
スクリーンショット 2021-01-01 3 45 48

**Desktop (please complete the following information):**
- Ubuntu 16.04
- The last commit id if you built project from sources (run : ```git-rev parse HEAD```)

```bash
$ git rev-parse HEAD
d7c9243880b973c137378569dec7d408b695f36f
```

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.