def remove_dot_git(url_with_dot_git):
    """
    Removes trailing .git in repo name or url
    :param url_with_dot_git:
    :return:
    """
    url = url_with_dot_git.split('.git')[0]
    return url