def repository_dirname(template):
  """ Utility function getting repository name from the link
  Example: for "https://github.com/user/SomeRepo" should return "SomeRepo"
  """
  return template.split('/')[-1]