def eval_repo_url(repo_url):
    """
    Allow passing short GitHub or GitLab SSH style URLs.
    """
    if not repo_url:
        raise Exception("No valid repo_url provided or could be inferred.")
    if repo_url.startswith("gitlab@") or repo_url.startswith("file://"):
        return repo_url
    else:
        if len(repo_url.split("/")) == 2 and "git@" not in repo_url:
            url = "https://github.com/{}".format(repo_url)
        else:
            url = repo_url
        return url

    Allow passing short GitHub or GitLab SSH style URLs.
    
st2common/st2common/util/pack_management.py