modmore / Gitify

Command line toolkit to make managing a MODX site in git a lot easier.
MIT License
122 stars 55 forks source link

Gitify Extract overrides /content/web/*.html file when same Resource Alias #113

Closed studiovlijmscherp closed 9 years ago

studiovlijmscherp commented 9 years ago

When duplicate Resource Aliases exist, they get overwritten (or not created?).

Example:

ResourceA.html -- child1.html -- child2.html

ResourceB.html -- child1.html -- child2.html

child1.html + child2.html are created only once.

Mark-H commented 9 years ago

Can you try building the content with the verbose option and share the output? Gitify build content --verbose

studiovlijmscherp commented 9 years ago

Sure, but the problem isn't the build (i think), but the extract (see dump below). I'm missing resources in /content/web/ folder so they cannot be created anyway.


Building modContext from contexts/...

This is my extract:

Extracting modContext into contexts (2 records)...

studiovlijmscherp commented 9 years ago

It seems enabling friendly urls + Use Friendly Alias Path solves the issue. Resources are now created in their own subdirectories, so duplicates aren't overwritten.

Mark-H commented 9 years ago

Great! :) Maybe the alias path should be mandatory for use with Gitify, otherwise I'm not sure how to deal with duplicates.