From 97feaf11fc6e4fe8930ccf8023194e512717443e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 12 Aug 2026 06:17:59 +0000 Subject: [PATCH] test(source-control): disable commit signing in prune_babysit_worktrees fixtures Machines with commit.gpgsign=true globally error during fixture setup because the throwaway identity has no GPG key. Set commit.gpgsign false repo-locally in make_repo, matching worktree-create-gate.test.sh (#2358). Co-authored-by: Kyle Sexton --- .../scripts/tests/test_prune_babysit_worktrees.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/source-control/skills/babysit-prs/scripts/tests/test_prune_babysit_worktrees.py b/plugins/source-control/skills/babysit-prs/scripts/tests/test_prune_babysit_worktrees.py index d5162ce11..a68808097 100644 --- a/plugins/source-control/skills/babysit-prs/scripts/tests/test_prune_babysit_worktrees.py +++ b/plugins/source-control/skills/babysit-prs/scripts/tests/test_prune_babysit_worktrees.py @@ -46,12 +46,15 @@ def git(*args: str) -> str: def make_repo(tmp: pathlib.Path) -> pathlib.Path: - """A one-commit repository with committer identity set locally.""" + """A one-commit repository with committer identity and signing set locally.""" main = tmp / "mainrepo" main.mkdir() git("init", "-q", str(main)) git("-C", str(main), "config", "user.email", "t@t") git("-C", str(main), "config", "user.name", "t") + # Repo-local only: machines with commit.gpgsign=true globally have no key for + # the fixture identity and every setup commit errors out (#2358). + git("-C", str(main), "config", "commit.gpgsign", "false") git("-C", str(main), "commit", "-q", "--allow-empty", "-m", "init") return main