adessoSE / jekyll2cms

Tool for exporting github repo to a CMS
https://www.adesso.de
MIT License
3 stars 3 forks source link

XML files inside assets/first-spirit-xml must also be deleted when deleting a post file. #60

Closed shsanayei closed 7 years ago

shsanayei commented 7 years ago

When Jekyll2Cms pulls changes from the configured repository and copies the xml files to the specified first-spirit-xml directory, it does not regard deleted files.

The application must also recognize deleted files and delete the xml equivalents to those files from the first-spirit-xml directory as well.

Calle-Lo commented 7 years ago

The Method pushRep gets an List entries in the Parameterlist. The Method copyGeneratedXmlFiles gets the same Parameter.

The Method iterates through the List and looks for entries which has the typ DELETE and delete them from the local Repository in the copyGeneratedXmlFiles Method and add it for the commit in the pushRepo Method.