def remove_protocol_and_user_from_clone_url(repository_clone_url):
 if (repository_clone_url.find('@') > 0):
  items = repository_clone_url.split('@')
  tmp_url = items[1]
 elif (repository_clone_url.find('//') > 0):
  items = repository_clone_url.split('//')
  tmp_url = items[1]
 else:
  tmp_url = repository_clone_url
 return tmp_url.rstrip('/')

def remove_protocol_and_user_from_clone_url ( repository_clone_url ) : if ( repository_clone_url . find ( '@' ) > 0 ) : items = repository_clone_url . split ( '@' ) tmp_url = items [ 1 ] elif ( repository_clone_url . find ( '//' ) > 0 ) : items = repository_clone_url . split ( '//' ) tmp_url = items [ 1 ] else : tmp_url = repository_clone_url return tmp_url . rstrip ( '/' )
return a url that can be used to clone a repository .