You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use 1Password as my ssh-agent and it is managing two git accounts. But my commits aren't signed.
Steps to Reproduce the Problem
Have two git accounts configured as follows:
global .gitconfig
[user]
name = Personal Account
email = [email protected]
signingkey = ssh-ed25519 .......
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[commit]
gpgsign = true
[core]
editor = nvim
[ui]
editor = "nvim"
[includeIf "gitdir:~/projects/work/"]
path = ~/projects/work/.gitconfig
.gitconfig work folder
[user]
name = Work Account
email = [email protected]
signingkey = ssh-ed25519 .......
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[commit]
gpgsign = true
jj config.toml:
[ui]
default-command = "log"
paginate = "never"
[git]
subprocess = true
# Tried following but sadly no result:
# [signing]
# sign-all = true
# backend = "ssh"
# Work signingkey was used as I only need work commits to be signed.
# signingkey = "ssh-ed25519 ......"
#
# [signing.backends.ssh]
# program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
Open project: (~/projects/work/project-i-am-making-changes-in/)
jj describe -m "test"
jj new
touch test-change
jj squash
jj git push
Expected Behavior
I expect the new change to be pushed.
Actual Behavior
I get the following error:
❯ jj git push
Changes to push to origin:
Move sideways bookmark <bookmark-name> from ..... to .....
remote: GitLab: Commit must be signed with a GPG key
Description
I use 1Password as my ssh-agent and it is managing two git accounts. But my commits aren't signed.
Steps to Reproduce the Problem
Have two git accounts configured as follows:
global .gitconfig
.gitconfig work folder
jj config.toml:
Open project: (~/projects/work/project-i-am-making-changes-in/)
jj describe -m "test"
jj new
touch test-change
jj squash
jj git push
Expected Behavior
I expect the new change to be pushed.
Actual Behavior
I get the following error:
Specifications
e091172b63cb7ef7f2caa751ab1f0f3500816cd7
If any additional info is needed for debugging please let me know and I will provide it as best as I can!
The text was updated successfully, but these errors were encountered: