Do not try to run a git command when it's obvious this is not a git repo...

...sitory.