Catch 'git' calls in non-git repositories