class GitUtils {

	public static boolean isGitRepo(Path gitRootFolder) {
		if(Files.notExists(gitRootFolder)) {
			return false;
		}
		if(!Files.isDirectory(gitRootFolder)) {
			return false;
		}

		return RepositoryCache.FileKey.isGitRepository(gitRootFolder.resolve(Constants.DOT_GIT).toFile(), FS.DETECTED);
	}

}