+ # add git servers if any
+ cfg.addMapping("git_info", src.pyconf.Mapping(cfg), "The repositories\n")
+ cfg.VARS['git_servers'] = []
+ cfg.VARS['opensource_git_servers'] =[]
+
+ for project in cfg.PROJECTS.projects:
+ if 'git_info' not in cfg.PROJECTS.projects[project]:
+ logger.warning("Project: {} does not have any git_info section! Please define one!")
+ continue
+ if 'git_server' in cfg.PROJECTS.projects[project]['git_info']:
+ git_servers=cfg.PROJECTS.projects[project]['git_info']['git_server']
+ for git_server in git_servers:
+ cfg.VARS['git_servers']+=[git_server]
+ if git_servers[git_server]['opensource_only'] == 'yes' :
+ cfg.VARS['opensource_git_servers']+=[git_server]
+ if 'default_git_server_dev' in cfg.PROJECTS.projects[project]['git_info'].keys():
+ cfg.VARS['git_servers']+=['tuleap']
+ cfg.VARS['default_git_server_dev'] = cfg.PROJECTS.projects[project]['git_info']['default_git_server_dev']
+ if 'default_git_server' in cfg.PROJECTS.projects[project]['git_info'].keys():
+ cfg.VARS['git_servers']+=['gitpub']
+ cfg.VARS['opensource_git_servers']+=['gitpub']
+ cfg.VARS['default_git_server'] = cfg.PROJECTS.projects[project]['git_info']['default_git_server']
+