Skip to main content
March 13, 2023
Question

Problems with (some?) ssh-git interaction

  • March 13, 2023
  • 2 replies
  • 463 views

Hi,

I've just moved from Intel to Apple silicon, and am having trouble with ssh and 1password. ~/.ssh/config seems to be correct, containing


Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

Some interactions work, but when I try to commit I get the following:

```
$ git commit -m "add test"
error: error: Found argument '-U' which wasn't expected, or isn't valid in this context

If you tried to supply -U as a value rather than a flag, use -- -U

USAGE:
op-ssh-sign [OPTIONS] -Y [--] [payload]

For more information try --help

fatal: failed to write commit object

```
It seems to be working fine on another Apple Silicon machine...


1Password Version: 8.10.3 (81003001)
Extension Version: Not Provided
OS Version: macOS 13.2.1
Browser:_ Not Provided
Referrer: forum-search:https://1password.community/search?Search=Found%20argument%20'-U'%20which%20wasn't%20expected%2C%20or%20isn't%20valid%20in%20this%20context

2 replies

March 14, 2023

Aha, it’s the same as https://1password.community/discussion/138746/upgraded-to-git-2-40-0-on-homebrew-and-1password-quit-signing-throws-error, apparently having to do with a new version of git.

Jack_P_1P
1Password Employee
1Password Employee
March 24, 2023

Hi @"a.jaffe":

You're absolutely, right, and I'd like to apologize for the delay here. I see we got this sorted out in a recent update to 1Password, so please get in touch if there's anything else we can help you with.

Jack