def push_mirrors(config, git_dir):
 log = logging.getLogger('gitosis.mirror.push_mirrors')
 repository_dir = os.path.abspath(util.getRepositoryDir(config))
 git_dir = os.path.abspath(git_dir)
 git_name = get_git_name(repository_dir, git_dir)
 log.info(("Updating %s's mirrors." % git_name))
 for remote in get_mirrors(config, git_name):
  log.info(('Updating %s.' % remote))
  repository.mirror(git_dir, remote)

def push_mirrors ( config , git_dir ) : log = logging . getLogger ( 'gitosis.mirror.push_mirrors' ) repository_dir = os . path . abspath ( util . getRepositoryDir ( config ) ) git_dir = os . path . abspath ( git_dir ) git_name = get_git_name ( repository_dir , git_dir ) log . info ( ( "Updating %s's mirrors." % git_name ) ) for remote in get_mirrors ( config , git_name ) : log . info ( ( 'Updating %s.' % remote ) ) repository . mirror ( git_dir , remote )
apply a push with the mirror option to all mirrors defined in gitosis .