The pull merge compared the hub against 'ours' = a .devignore/secret-guard FILTERED manifest. A file still on disk but excluded from 'ours' looked like a local delete, so a hub edit to that path hit 'case tOK && !oOK' and overwrote the on-disk bytes with NO conflict copy — silently destroying ignored configs and the very .env/keys the guard exists to protect (a teammate pushing .env could wipe your local secret). Now: in that branch, stat the real file first; if it's actually present, preserve it as a .conflict-<host>-<ts> copy before applying the hub version — honoring the 'never lose a byte' promise. Regression test proves the local bytes survive. |
||
|---|---|---|
| .. | ||
| deploy_test.go | ||
| hooks_integration_test.go | ||
| preserve_ignored_test.go | ||
| pull.go | ||
| pull_test.go | ||
| restore_test.go | ||
| safejoin_test.go | ||
| syncer.go | ||
| syncer_test.go | ||