mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
Gitlab replaces / with - in tag tarballs
This commit is contained in:
parent
9b91836273
commit
232117f248
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue