mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
MoveIn below a followed link ended in a pathname os.Rename against the link target's directory. That pathname can be renamed away and replaced by a link to another directory after through() cached the second root, so the move landed outside the checkout the root was opened on. The followed route now copies the staged tree through the root handle to a temporary name, renames it into place through the handle, and removes the staged source only after that. The primary root keeps its rename, so behavior without a follow policy is unchanged.