Fetch with `ssh` works, but pull does not.
- Dominant language
- Rust
- Stars
- 22.5k
- Forks
- 773
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Fetch works... pull doesn't.
**To Reproduce**
Steps to reproduce the behavior:
1. `shift+f` -> fetch remote, yubikey touch for SSH, works fine :ok_hand:
2. `p` -> pull remote, yubikey touch for SSH, `fetch failed: git error: Bad credentials.` :sob:
**Context (please complete the following information):**
- OS/Distro + Version: Pop!_OS
- GitUI Version: #2157 branch
- Rust version: 1.77.0
**Additional context**
I have multiple ssh and gpg configs that occasionally will error on one that is incorrect, but then try another that is for `git` - I have not tried to see if that is the issue here, but I do not think it's at play in testing so far.
Contributor guide
Research direction
Start by reproducing the difference between the `shift+f` fetch path and the `p` pull path with SSH and YubiKey authentication on the reported environment. Compare the two operations' authentication behavior and verify the fix by confirming that pull completes without `Bad credentials`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100