Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(tests): stop git auto-maintenance from deleting the promote test's new worktree (#4466)
Worktrunk Bota48f470856b5
diff --git a/tests/integration_tests/step_promote.rs b/tests/integration_tests/step_promote.rsindex 9ad517540..854f7ca11 100644--- a/tests/integration_tests/step_promote.rs+++ b/tests/integration_tests/step_promote.rs@@ -317,6 +317,12 @@ fn test_promote_bare_repo_with_worktrees() {],);+ // The push below starts a detached `git maintenance run --auto` in the+ // bare repo, whose worktree-prune task can delete `worktrees/<name>` while+ // `git worktree add` is still creating it. receive-pack drops the+ // `GIT_CONFIG_*` env, so only the repo's own config can turn it off.+ run_git(&bare_repo, &["config", "maintenance.auto", "false"]);+// Create a commit via a temporary clonerun_git(temp_dir.path(),