buzz icon indicating copy to clipboard operation
buzz copied to clipboard

docs(git): document macOS osxkeychain conflict and URL-scoped helper setup

Open jdrolls opened this issue 3 months ago • 0 comments

Summary

Following the README's Setup section on macOS produces failed to store: -1 after every successful push, fetch, and ls-remote. Operations succeed — the error is pure noise — but it looks like a failure and nothing in the docs explains it.

Cause: Xcode's bundled gitconfig registers osxkeychain as a credential helper for every repo, and git config --global credential.helper nostr appends to that chain rather than replacing it. GIT_TRACE=1 shows git credential-osxkeychain get running before git credential-nostr get; after auth succeeds, git asks every helper in the chain to store the credential, and osxkeychain fails on the Nostr credential shape. (This is not a defect in git-credential-nostr itself — it correctly no-ops on store.)

This PR adds a macOS subsection to Setup documenting the URL-scoped helper idiom (chain reset + nostr, the same pattern GitHub's gh CLI uses), which both silences the error and scopes the helper so it never runs for github.com or other hosts. Also adds the symptom to the Troubleshooting table.

Related issue

None filed for this specifically — searched open/closed issues and PRs; closest are #2316 (credential-helper debugging pain on Linux) and PRs #3435 / #3299 (helper path quoting), none of which cover the osxkeychain chain conflict.

Testing

Docs-only change. The documented commands are verified on a live macOS setup (macOS, Apple Silicon, git 2.50.1 / Apple Git-155) against a self-hosted relay with git hosting enabled: with the URL-scoped config, failed to store: -1 disappears and push/fetch/ls-remote continue to authenticate correctly; github.com operations no longer invoke the nostr helper at all.

jdrolls avatar Aug 02 '26 01:08 jdrolls