Fix TestTwoCloneCollision: configure git to use merge instead of rebase
This commit is contained in:
@@ -46,6 +46,8 @@ func TestTwoCloneCollision(t *testing.T) {
|
||||
runCmd(t, cloneA, "./bd", "init", "--quiet", "--prefix", "test")
|
||||
// Enable hash ID mode for collision-free IDs
|
||||
runCmdWithEnv(t, cloneA, map[string]string{"BEADS_NO_DAEMON": "1"}, "./bd", "config", "set", "id_mode", "hash")
|
||||
// Configure git to use merge instead of rebase (sorted JSONL merges cleanly)
|
||||
runCmd(t, cloneA, "git", "config", "pull.rebase", "false")
|
||||
|
||||
// Commit the initial .beads directory from clone A
|
||||
runCmd(t, cloneA, "git", "add", ".beads")
|
||||
@@ -61,6 +63,8 @@ func TestTwoCloneCollision(t *testing.T) {
|
||||
runCmd(t, cloneB, "./bd", "init", "--quiet", "--prefix", "test")
|
||||
// Enable hash ID mode (same as clone A)
|
||||
runCmdWithEnv(t, cloneB, map[string]string{"BEADS_NO_DAEMON": "1"}, "./bd", "config", "set", "id_mode", "hash")
|
||||
// Configure git to use merge instead of rebase (sorted JSONL merges cleanly)
|
||||
runCmd(t, cloneB, "git", "config", "pull.rebase", "false")
|
||||
|
||||
// Install git hooks in both clones
|
||||
t.Log("Installing git hooks")
|
||||
|
||||
Reference in New Issue
Block a user