code: def validate_repo_url(self, repo: str):
          
          # that should match valid git repos
          if not isinstance(repo, str) or not re.match(r"^(https?|file)://[\w._\-/~]*[.git]?/?$", repo):
              raise ValueError(f"{repo} is not a valid http[s] or file:// git repository.")
docs: Validates repo URL - if it's a valid git URL and if Arca can handle that type of repo URL
  
          :raise ValueError: If the URL is not valid