Skip to content

git commit identity ignores repo/user git config; stamps jcode@<host>.local #87

Open

Description

@KooshaPari

When jcode creates a git commit it stamps author/committer as jcode [email protected] (whoami@hostname default) instead of reading git config user.name / user.email (repo-local first, then global). Observed on PR-branch commits in KooshaPari/Khostty on 2026-10-15 (six commits across ci/python-test-coverage and ci/zig-fork-tests), where the repo local config was already correct and jcode still overrode it.

Expected: resolve identity the way git itself does - repo-local user.name/user.email, then global - and only synthesize a fallback when neither exists. When falling back, fail loudly (warning plus surfaced note) rather than silently stamping [email protected], so a misconfigured host is caught instead of needing history repair later.

Interim mitigation deployed host-side: GIT_AUTHOR_* and GIT_COMMITTER_* exported at the shell/launcher level (macOS zshenv, desk WSL profile.d, desk Windows user env). Existing panes keep the old identity until restarted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions