Link only the vanilla data into new worktrees

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-11 19:38:16 +02:00
parent 5ede186d40
commit d572cd7262
+3 -1
View File
@@ -87,8 +87,10 @@ def new(args):
git("worktree", "add", "-b", branch, str(path), args.base)
shared = base_tree.parent / "shared-local"
(path / ".local").mkdir()
# Link the vanilla data, not the shared runner and datafix state beside it.
for entry in sorted(shared.iterdir()) if shared.is_dir() else []:
(path / ".local" / entry.name).symlink_to(entry)
if entry.is_dir() and entry.name not in {"parity-shared", "datafix"}:
(path / ".local" / entry.name).symlink_to(entry)
print(f"{path} on {branch}, from {args.base} at {git('rev-parse', '--short', 'HEAD', cwd=path)}")