proper test for gitDirs.