Skip to content

Conversation

@assagman
Copy link
Contributor

@assagman assagman commented Jan 16, 2026

Tests could fail for developers with global git hooks (e.g., sign-off requirements). Test fixtures now use isolated git config and an empty hooks directory.

Fixes #8899

Copilot AI review requested due to automatic review settings January 16, 2026 14:57
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves test isolation by preventing global git configuration and hooks from interfering with test execution. Developers with global git hooks (e.g., enforcing commit sign-offs) were experiencing test failures because the test fixture git repositories inherited those global settings.

Changes:

  • Configured isolated user identity for test git repositories
  • Redirected git hooks to an empty directory to bypass global hooks
  • Added comments explaining the isolation strategy

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Tests could fail for developers with global git hooks (e.g., sign-off
requirements). Test fixtures now use isolated git config and an empty
hooks directory.

Signed-off-by: assagman <ahmetsercansagman@gmail.com>
Address PR review: make config scope explicit for clarity.

Signed-off-by: assagman <ahmetsercansagman@gmail.com>
@assagman assagman force-pushed the test/fixture-git-hook branch from a899ca5 to 5179f94 Compare January 30, 2026 14:53
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.

test: tests fail for developers with global git hooks

1 participant