def compose_git(projects, data):
for p in [project for project in data if len(data[project]['<STR_LIT>']) > <NUM_LIT:0>]:<EOL><INDENT>repos = []<EOL>for url in data[p]['<STR_LIT>']:<EOL><INDENT>if len(url['<STR_LIT:url>'].split()) > <NUM_LIT:1>:  <EOL><INDENT>repo = url['<STR_LIT:url>'].split()[<NUM_LIT:1>].replace('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>repo = url['<STR_LIT:url>'].replace('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>if repo not in repos:<EOL><INDENT>repos.append(repo)<EOL><DEDENT><DEDENT>projects[p]['<STR_LIT>'] = repos<EOL><DEDENT>return projects<EOL>
Compose projects.json for git

    We need to replace '/c/' by '/gitroot/' for instance

    change: 'http://git.eclipse.org/c/xwt/org.eclipse.xwt.git'
    to: 'http://git.eclipse.org/gitroot/xwt/org.eclipse.xwt.git'

    :param projects: projects.json
    :param data: eclipse JSON
    :return: projects.json with git