Skip to content

bug: CSA git guard blocks git version in lefthook #3052

Description

@aider4ryder

The CSA git guard emits a false-positive block for git version invoked by a repository pre-commit hook. The hook ultimately exits successfully, but the guard output is unexpected and can make a valid local gate look broken.

  • Session ID: 01KZRK013A0S9616A4GW4CJWFF
  • Session directory: /home/obj/.local/state/cli-sub-agent/home/obj/project/github/RyderFreeman4Logos/mempal/sessions/01KZRK013A0S9616A4GW4CJWFF
  • Command: lefthook run pre-commit
  • Exit code: 0
  • stderr excerpt:
    CSA git-guard: blocked command: git <command>
    Use a hermetic local bare fixture under $CSA_SESSION_DIR/git-fixtures and push to its direct canonical path or file:// URL.
    

Expected: read-only git version remains allowed so scripts/hooks/branch-protection.sh can run without a spurious guard diagnostic.

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