Exemple #1
0
Fichier : Open.py Projet : rec/grit
def get_remotes():
    remotes = {}
    for line in Call.run(['git', 'remote', '-v']).splitlines():
        name, url, direction = line.split()
        account, site, user, project = GIT_URL_MATCHER(url).groups()
        assert account == 'git' and site == 'github.com'
        remotes[name] = user, project

    return remotes