Prevent bad commits deploying.

In the event of a fatal error occuring when trying to add content to
git for commit, you end up pushing a blank commit to the git respository.
This is a change which halts the push to a git repository so you don't
accidentally take down your website.
Merge pull request #77 from mconnell/master

Prevent bad commits deploying. (git)