Push always treated the local .devignore/secret-guard-filtered manifest as the FULL shared head, even on a whole-share mount — so a device with its own --exclude for a path silently deleted that path from every other device's copy on their next pull. splice() now merges local entries over the parent head instead of the parent head being consulted only for sub-path mounts: a parent-head path missing from the local manifest is carried forward when the local ignore rules are why it's invisible (excluded from view, not deleted). It is NOT carried forward when the secret guard blocked it (the guard's job is to keep that content out of the head) or when it's genuinely gone from disk with no ignore rule hiding it (a real delete must still delete). under()/strip() already treat subpath="" as "the whole path space," so this is one code path for both mount kinds, not a special case bolted onto the old one. Includes the two repro tests (deduped from a near-copy) and a new delete-case regression proving the fix didn't make real deletes un-deletable. |
||
|---|---|---|
| .. | ||
| chunk | ||
| config | ||
| control | ||
| daemon | ||
| hooks | ||
| hub | ||
| identity | ||
| ignore | ||
| manifest | ||
| secret | ||
| syncer | ||
| transport | ||
| watch | ||