Ensure that we simply return null results if not in a git dir.