fix: remove dead .gitconfig, use GIT_INIT_DEFAULT_BRANCH env var #17
Reference in New Issue
Block a user
Delete Branch "fix/gitconfig-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The tmpfiles rule created a .gitconfig at
/home/hermes/.gitconfig, but the hermes-agent service setsHOME=/var/lib/hermes, so git never reads it. The file also contained only the literal Nix store path instead of the actual config content (wrong tmpfiles typefinstead ofL+).Changes
.gitconfigtmpfiles rule (was at/home/hermes/, never read)GIT_INIT_DEFAULT_BRANCH = "master"to theenvironmentsectionWhy env vars > .gitconfig
All git identity is now set via a single mechanism:
GIT_AUTHOR_NAME/EMAIL— author identityGIT_COMMITTER_NAME/EMAIL— committer identityGIT_INIT_DEFAULT_BRANCH— default branch (Git 2.28+)These are injected by the hermes gateway into
.envand take precedence over any gitconfig file. No duplication, no tmpfiles rules for git.