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.