preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

Conflicts with the Git deploy branch are difficult/impossible to resolve #523

Open preaction opened 7 years ago

preaction commented 7 years ago

If someone else has deployed the site since we've deployed it, we will not be allowed to push the deploy branch. We will instead be dropped on the deploy branch with an error message and barely told what to do.

Since I know what to do, I tried pulling, but the nature of the blog app basically means that every single merge will be a conflict. So, there was a conflict. I don't want to resolve the conflict, because I don't care what the site used to be: The deploy is completely re-building the site.

When using the git deploy, we should try to merge the remote deploy branch before building and committing. If this results in a conflict, we have two options:

We should add a safe flag to the Git deploy to prevent the clobbering behavior, and always ask the user for guidance on how to continue. This flag should be off by default.