def verify_pygit2(self, quiet=False):
        def _recommend():
            if HAS_GITPYTHON and 'gitpython' in self.valid_providers:
                log.error(_RECOMMEND_GITPYTHON)
            if HAS_DULWICH and 'dulwich' in self.valid_providers:
                log.error(_RECOMMEND_DULWICH)

        if not HAS_PYGIT2:
            if not quiet:
                log.error(
                    'Git fileserver backend is enabled in master config file, '
                    'but could not be loaded, are pygit2 and libgit2 '
                    'installed?'
                )
                _recommend()
            return False
        elif 'pygit2' not in self.valid_providers:
            return False

        # pylint: disable=no-member
        pygit2ver = distutils.version.LooseVersion(pygit2.__version__)
        pygit2_minver = distutils.version.LooseVersion(PYGIT2_MINVER)

        libgit2ver = distutils.version.LooseVersion(pygit2.LIBGIT2_VERSION)
        libgit2_minver = distutils.version.LooseVersion(LIBGIT2_MINVER)
        # pylint: enable=no-member

        errors = []
        if pygit2ver < pygit2_minver:
            errors.append(
                'Git fileserver backend is enabled in master config file, but '
                'pygit2 version is earlier than {0}. Version {1} detected.'
                .format(PYGIT2_MINVER, pygit2.__version__)
            )
        if libgit2ver < libgit2_minver:
            errors.append(
                'Git fileserver backend is enabled in master config file, but '
                'libgit2 version is earlier than {0}. Version {1} detected.'
                .format(LIBGIT2_MINVER, pygit2.LIBGIT2_VERSION)
            )
        if not salt.utils.which('git'):
            errors.append(
                'The git command line utility is required by the Git fileserver '
                'backend when using the \'pygit2\' provider.'
            )

        if errors:
            for error in errors:
                log.error(error)
            if not quiet:
                _recommend()
            return False

        self.opts['verified_{0}_provider'.format(self.role)] = 'pygit2'
        log.debug('pygit2 {0}_provider enabled'.format(self.role))
        return True
Add an HTML non-breaking space between the final
dataset/ETHPy150Open saltstack/salt/salt/utils/gitfs.py/GitBase.verify_pygit2--crossover with--dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/templatetags/zinnia.py/widont