mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
A branch reads the images it inherited through main's media rows. When materialize turned it into an ordinary file, the file kept pointing at those rows and released the base that kept main's file-gc away from them, so an image main later dropped, or main's deletion, broke the materialized file. Materialize now copies every media row the document uses that another file owns into the branch file under a fresh id, and re-points the document at the copies before it persists it. AI-assisted-by: claude-opus-5-5