Skip to content

fix: honor Git effective hook paths for ores-lint - #95

Merged
ORESoftware merged 3 commits into
mainfrom
hardening/ores-lint-effective-hooks
Sep 20, 2026
Merged

ORESoftware merged 3 commits into
mainfrom
hardening/ores-lint-effective-hooks

Conversation

@ORESoftware

Copy link
Copy Markdown
Owner

Hardens the optional ores-lint pre-push installer so it writes to Git's effective hook directory instead of assuming .git/hooks.

  • supports default hooks plus relative, absolute, and literal ~/ core.hooksPath values;
  • handles linked-worktree git dirs via git rev-parse --absolute-git-dir;
  • refuses to clobber unrelated pre-push hooks;
  • generated hook fails closed if the repository-local lint entrypoint disappears;
  • adds a hermetic contract covering default/relative/absolute/tilde/conflict cases;
  • adds a pinned, read-only, path-scoped CI lane for the installer contract.

@ORESoftware
ORESoftware merged commit eb29f81 into main Sep 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant