From 1bbdbf1029af8ab40e71aed5af729833abac9efd Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Mon, 16 Sep 2024 11:53:53 +0200 Subject: [PATCH] Strip the trailing / from project name. --- autoupdate_app_sources/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoupdate_app_sources/rest_api.py b/autoupdate_app_sources/rest_api.py index 9c33c48..302ca44 100644 --- a/autoupdate_app_sources/rest_api.py +++ b/autoupdate_app_sources/rest_api.py @@ -63,7 +63,7 @@ class GitlabAPI: def __init__(self, upstream: str): # Find gitlab api root... self.forge_root = self.get_forge_root(upstream).rstrip("/") - self.project_path = upstream.replace(self.forge_root, "").lstrip("/") + self.project_path = upstream.replace(self.forge_root, "").strip("/") self.project_id = self.find_project_id(self.project_path) def get_forge_root(self, project_url: str) -> str: