Skip to content

test: tests fail for developers with global git hooks #8899

@assagman

Description

@assagman

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

  1. Configure a global git hook (e.g., sign-off requirement)
  2. Run bun test in packages/opencode
  3. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions