diff --git a/autoupdate_app_sources/rest_api.py b/autoupdate_app_sources/rest_api.py index 611544f..6cf6d43 100644 --- a/autoupdate_app_sources/rest_api.py +++ b/autoupdate_app_sources/rest_api.py @@ -121,7 +121,8 @@ class GitlabAPI: def url_for_ref(self, ref: str, ref_type: RefType) -> str: name = self.project_path.split("/")[-1] - return f"{self.forge_root}/{self.project_path}/-/archive/{ref}/{name}-{ref}.tar.bz2" + clean_ref = ref.replace("/", "-") + return f"{self.forge_root}/{self.project_path}/-/archive/{ref}/{name}-{clean_ref}.tar.bz2" class GiteaForgejoAPI: