Skip to content

Disable inherited Git hooks in temporary test repositories - #725

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7267-make-temporary-git-repositories-ignore-developer-hooks
Aug 31, 2026
Merged

Disable inherited Git hooks in temporary test repositories#725
TheGreatAxios merged 2 commits into
mainfrom
cl-7267-make-temporary-git-repositories-ignore-developer-hooks

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Temporary Git fixtures now set local user.email/user.name and an empty core.hooksPath so operator hooks never run on t@t.test fixture commits.
  • Shared helper tests/helpers/temporary-git-repo.ts is used by permission, session, worktree, and release tests.

Verification

  • Typecheck and build passed; targeted tests passed.
  • Full bun run test was blocked by host git hooks rejecting fixture authors (this PR is the helper for that).

Fixes CL-7267

Fixture commits inherit the operator core.hooksPath, so an allowed-emails hook can reject t@t.test and fail bun run check. Local identity plus an empty hooksPath keeps those hooks out without touching global config.
@linear-code

linear-code Bot commented Aug 31, 2026

Copy link
Copy Markdown

CL-7267

@TheGreatAxios
TheGreatAxios merged commit 9c6219e into main Aug 31, 2026
5 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