def __virtual__():
    if 'git.version' not in __salt__:
        return False
    git_ver = _LooseVersion(__salt__['git.version'](versioninfo=False))
    return git_ver >= _LooseVersion('1.6.5')
Only load if git is available
dataset/ETHPy150Open saltstack/salt/salt/states/git.py/__virtual__