def strip_repository_name(git_repo_url):
    """
        Strips the input and returns the text between rightmost '/' and '.git'
    """
    output = git_repo_url
    last_slash = output.rfind('/')
    if last_slash != -1:
        output = output[last_slash + 1:]
    dot_git = output.rfind('.git')
    if dot_git != -1:
        output = output[:dot_git]
    return output.lower()
