Test whether there is a git repository