hyde/hyde — Issue #135: Publishing doesn't remove files that are no longer deployed (deleted)
Author: idank
Created: 2012-01-02 15:19:31+00:00
State: open

The git publisher copies the deploy tree to the path specified in the publisher config in hyde/ext/publishers/dvcs.py:47:

self.site.config.deploy_root_path.copy_contents_to(self.path)

But files that no longer exist in `deploy_root_path` will still exist in `self.path`. This operation should instead be equivalent to `rsync --delete...`.

An easy workaround might be to delete everything in the publish destination except .git, .gitignore, ..., and then copy the contents.