fix(test): use --local flag in git config check for merge driver test

The test was picking up global git config when checking that --skip-merge-driver
didn't set the merge.beads.driver config locally.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-01 22:12:39 -08:00
parent a4260c9660
commit e5c3f8b45a

View File

@@ -560,8 +560,8 @@ func TestInitMergeDriverAutoConfiguration(t *testing.T) {
t.Fatalf("Init failed: %v", err)
}
// Verify git config was NOT set
_, err = runCommandInDirWithOutput(tmpDir, "git", "config", "merge.beads.driver")
// Verify git config was NOT set locally (use --local to avoid picking up global config)
_, err = runCommandInDirWithOutput(tmpDir, "git", "config", "--local", "merge.beads.driver")
if err == nil {
t.Error("Expected git config to not be set with --skip-merge-driver")
}