Skip to content

portability: git/.gitconfig has hardcoded /home/stan/ paths #64

@stanfish06

Description

@stanfish06

Commit 3b46cbe (May 15 "update") added two hardcoded /home/stan/ paths to git/.gitconfig that will break on any account that isn't stan.

1. signingkey = /home/stan/.ssh/id_ed25519.pub

Git supports ~ in user.signingKey for the SSH format. Change to:

-    signingkey = /home/stan/.ssh/id_ed25519.pub
+    signingkey = ~/.ssh/id_ed25519.pub

This fix is included in the open PR against branch claude/nice-cori-Jr1p4.

2. [safe] directory = /home/stan/nixos

The [safe] directory whitelist is inherently machine-specific (it whitelists directories not owned by the current user). This entry will silently do nothing on other machines and is noise in the shared config. Consider moving machine-specific [safe] entries to ~/.gitconfig.local (included via [include]) instead of tracking them in the repo.

No patch for item 2 — left to your discretion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions