Link only the vanilla data into new worktrees
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -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)}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user