-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Open
Description
Description
Tests fail for developers who have global git hooks configured (e.g., sign-off requirements via commit-msg or prepare-commit-msg hooks).
When a developer has hooks configured globally in ~/.config/git/hooks/ or via core.hooksPath, these hooks are picked up by the test fixture git repositories, causing unexpected test failures.
Steps to reproduce
- Configure a global git hook (e.g., sign-off requirement)
- Run
bun testin packages/opencode - Observe test failures related to git operations
Expected behavior
Tests should run in an isolated environment and not be affected by developer's local git configuration.
Fix
Resolved in #8898 - Test fixtures now use isolated git config and an empty hooks directory.
OpenCode version: 0.0.0-dev-202601161353
OS: macOS Tahoe 26.3 arm64
Terminal: ghostty 1.2.3, tmux next-3.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels