fugit2.nvim icon indicating copy to clipboard operation
fugit2.nvim copied to clipboard

bug: Fugit2 does not sign commits using ssh keys

Open FKouhai opened this issue 11 months ago • 6 comments

Did you check docs and existing issues?

  • [x] I have read all the plugin docs
  • [x] I have searched the existing issues
  • [x] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.1

Operating system/version

nixOS(unstable)

Describe the bug

Fugit2 seems to be unable to sign commits using an ssh key with the bitwarden ssh agent

Steps To Reproduce

  1. install bitwarden and enable the ssh agent
  2. SSH_AUTH_SOCK=/path/to/bitwarden/ssh.sock
  3. Create ssh key in bitwarden
  4. Configure github to use that ssh key for signing commits
  5. copy pubkey into the .ssh dir
  6. try to make a commit using fugit2

Expected Behavior

The expected behavior would be for fugit2 to try to use that ssh key and get a prompt in bitwarden to allow that usage of the ssh key, like it does whenever you try to push/pull to/from a repo

FKouhai avatar May 10 '25 14:05 FKouhai

more info that might be useful

 - system: `"x86_64-linux"`
 - host os: `Linux 6.14.5, NixOS, 25.05 (Warbler), 25.05.20250505.3730d8a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.28.3`
 - channels(root): `"home-manager, nixos, nixpkgs"`
 - nixpkgs: `/nix/store/9rc9abg9f664bjfhzfp4cb8mrwh7b5y4-source`

bw version: 2025.3.1 Fugit2 version: 2025-02-04 (from nixpkgs)

FKouhai avatar May 10 '25 14:05 FKouhai

Did you run ssh-add

SuperBo avatar May 11 '25 11:05 SuperBo

yeah, I mean this works using lazygit, im not going to deny that the ssh agent of bitwarden needs some work but with lazygit it works

FKouhai avatar May 13 '25 22:05 FKouhai

I will test bitwarden in the weekend, please wait for my update 👍

SuperBo avatar May 15 '25 23:05 SuperBo

to add a bit more of info, it does use the bitwarden ssh agent to push and pull commits

FKouhai avatar May 18 '25 11:05 FKouhai

@FKouhai sorry, I can't test it now, Bitwarden doesn' work correctly on my Mac.

https://community.bitwarden.com/t/ssh-agent-in-macos-not-working/82609.

Did you config

git config gpg.format ssh
git config --global user.signingkey "<YOUR_PUBLIC_KEY>"

Can you how me output of

  • ssh-add -L
  • ssh-agent

SuperBo avatar Jun 08 '25 04:06 SuperBo