Avoid running interactively

Setting GIT_EDITOR to an empty string should suppress attempts to run
any commands interactively. Test that we fail to run known interactive
commands without hanging indefinitely.
Merge pull request #38 from mattlaw/prevent-interaction

Avoid running interactively