vm.sh sync: copy the tracked dist/.keep

Excluding all of dist/ (to keep the VM's build output from --delete)
also skipped dist/.keep, so the VM's checkout looked dirty and
build.sh would refuse to build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jeremy Karst 2026-11-19 00:10:37 -05:00
parent 784173c31a
commit 23f43f6b6c

View file

@ -141,8 +141,10 @@ stop()
sync_deps()
{
running || die "not running"
# owned by root in the VM: git refuses a repository owned by another user
rsync -a --chown=0:0 --delete --exclude /dist/ --exclude /_build/ --exclude /_vendor/ --exclude /.claude/ \
# owned by root in the VM: git refuses a repository owned by another user.
# The VM's build output is kept; dist/.keep is tracked (build.sh's clean check).
rsync -a --chown=0:0 --delete --include /dist/.keep --exclude '/dist/*' --exclude /_build/ \
--exclude /_vendor/ --exclude /.claude/ \
-e "ssh ${SSH_OPTS}" "${HERE}/" root@127.0.0.1:/usr/deps/
echo ">>> synced ${HERE} to /usr/deps ($(git -C "${HERE}" describe --always --dirty))"
}