(repo_url)
return chunks
Repo url splits to [git_account, git_repo]
    even if it's git://, or git@
Repo url splits to [git_account, git_repo]
    even if it's git://, or git@
Repo url splits to [ git_account git_repo ] even if it s git : // or git@
def split_repo_url(repo_url):
    """
    Repo url splits to [git_account, git_repo]
    even if it's git://, or git@

    """
    if re.search(r'^\w+://', repo_url):
        chunks = repo_url.split("/")[-2:]
    elif repo_url.startswith("git@"):
        chunks = repo_url.split(':')[-1].split('/')
    return chunks
def split_repo_url ( repo_url ) : if re . search ( r'^\w+://' , repo_url ) : chunks = repo_url . split ( "/" ) [ - 2 : ] elif repo_url . startswith ( "git@" ) : chunks = repo_url . split ( ':' ) [ - 1 ] . split ( '/' ) return chunks