getGitRoot function

Are we in a git repository?