From 9233322aa83e5854cddfa94305de4bccfc6565a5 Mon Sep 17 00:00:00 2001 From: itaskaev2 <165683571+itaskaev2@users.noreply.github.com> Date: Fri, 6 Nov 2026 19:08:11 +0100 Subject: [PATCH] Ignore every linked file in the worktree test's scratch repository tools/worktree.py links config.local.toml and CLAUDE.local.md since e3e72df, but the test's .gitignore listed only the first, so git status in the new worktree showed CLAUDE.local.md and the test failed. Co-Authored-By: Claude Opus 5.5 --- tests/worktree_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/worktree_test.py b/tests/worktree_test.py index e4c06ef7..de162b79 100644 --- a/tests/worktree_test.py +++ b/tests/worktree_test.py @@ -18,7 +18,7 @@ ROOT = Path(__file__).resolve().parent.parent sys.path.insert(0, str(ROOT / 'tools')) import worktree # noqa: E402 -IGNORED = '\n'.join('/' + d + '/' for d in worktree.LINK_DIRS) + '\n/' + worktree.LINK_FILES[0] + '\n/.worktrees/\n' +IGNORED = ''.join(f'/{p}\n' for p in [d + '/' for d in worktree.LINK_DIRS] + worktree.LINK_FILES + ['.worktrees/']) def git(cwd, *a):