Commit 4eb11cd
home-persist: merge dir-vs-dir collisions instead of nesting symlink (1.2.0)
When $HOME/<p>/ existed as a real directory AND the volume already had the
same path populated, the seeding mv was skipped and `ln -sfn $target $link`
landed *inside* the existing directory — producing e.g. $HOME/.claude/.claude
instead of $HOME/.claude → /mnt/home-persist/.claude.
Detect the dir-vs-dir collision, merge home → volume without clobbering
(volume wins, matching the stated model), then drop the home dir so the
symlink replaces it cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f180997 commit 4eb11cd
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
| |||
0 commit comments