def init_git_pillar(opts):
 ret = []
 for opts_dict in [x for x in opts.get('ext_pillar', [])]:
  if ('git' in opts_dict):
   if isinstance(opts_dict['git'], six.string_types):
    try:
     import git
    except ImportError:
     return ret
    parts = opts_dict['git'].strip().split()
    try:
     br = parts[0]
     loc = parts[1]
    except IndexError:
     log.critical('Unable to extract external pillar data: {0}'.format(opts_dict['git']))
    else:
     ret.append(git_pillar._LegacyGitPillar(br, loc, opts))
   else:
    pillar = salt.utils.gitfs.GitPillar(opts)
    pillar.init_remotes(opts_dict['git'], git_pillar.PER_REMOTE_OVERRIDES)
    ret.append(pillar)
 return ret

def init_git_pillar ( opts ) : ret = [ ] for opts_dict in [ x for x in opts . get ( 'ext_pillar' , [ ] ) ] : if ( 'git' in opts_dict ) : if isinstance ( opts_dict [ 'git' ] , six . string_types ) : try : import git except ImportError : return ret parts = opts_dict [ 'git' ] . strip ( ) . split ( ) try : br = parts [ 0 ] loc = parts [ 1 ] except IndexError : log . critical ( 'Unable to extract external pillar data: {0}' . format ( opts_dict [ 'git' ] ) ) else : ret . append ( git_pillar . _LegacyGitPillar ( br , loc , opts ) ) else : pillar = salt . utils . gitfs . GitPillar ( opts ) pillar . init_remotes ( opts_dict [ 'git' ] , git_pillar . PER_REMOTE_OVERRIDES ) ret . append ( pillar ) return ret
clear out the ext pillar caches .