git ssb

0+

Grey the earthling / gkn.me.uk



Commit c00fc772f1fb429ae01504f954f70476538c8dfd

Refuse to publish if there are uncommitted changes

Grey Nicholson committed on 10/1/2021, 2:16:11 PM
Parent: 6b39425b5d48d9bbd25ee3a82f436f6f8561704a

Files changed

Makefilechanged
MakefileView
@@ -26,8 +26,10 @@
2626 else ifeq "${SSHDIR}" ""
2727 @echo "SSHDIR is undefined"
2828 else ifeq "${SSHPORT}" ""
2929 @echo "SSHPORT is undefined"
30 +else ifneq "$$(git status --porcelain)" ""
31 + @echo "Uncommitted changes"
3032 else
3133 echo -e "cd ${SSHDIR} \n put -r output/* \n exit" | \
3234 sshpass -e sftp -oBatchMode=no -b - sftp://${SSHUSER}@gkn.me.uk:${SSHPORT}
3335 touch $@

Built with git-ssb-web