metakgp / metakgp-wiki

Dockerized source for the metakgp wiki.
https://wiki.metakgp.org
GNU General Public License v3.0
23 stars 20 forks source link

git diff comparison will happen with base_branch #92

Closed thealphadollar closed 3 years ago

thealphadollar commented 3 years ago

This resolves the issue that the comparison in the deploy-latest.sh script happens between the current local master and origin/master. This exits the deployment unless origin/master has been merged beforehand which adds an undesirable manual step.

A proposed solution is to do git diff with the base_branch which would exit if there are manual changes that have not been committed. In case some committed changes are there, as per line number 100, fast-forward merging will fail and the deployment will halt.