| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 27e0742 commit c3c3a91
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -92,7 +92,7 @@ def transfer_project(self, project_id: int, **kwargs: Any) -> None: | |||
| 92 | 92 | GitlabAuthenticationError: If authentication is not correct | |
| 93 | 93 | GitlabTransferProjectError: If the project could not be transferred | |
| 94 | 94 | """ | |
| 95 | - path = f"/groups/{self.id}/projects/{project_id}" | ||
| 95 | + path = f"/groups/{self.encoded_id}/projects/{project_id}" | ||
| 96 | 96 | self.manager.gitlab.http_post(path, **kwargs) | |
| 97 | 97 | ||
| 98 | 98 | @cli.register_custom_action("Group", ("scope", "search")) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -441,7 +441,7 @@ def upload( | |||
| 441 | 441 | with open(filepath, "rb") as f: | |
| 442 | 442 | filedata = f.read() | |
| 443 | 443 | ||
| 444 | - url = f"/projects/{self.id}/uploads" | ||
| 444 | + url = f"/projects/{self.encoded_id}/uploads" | ||
| 445 | 445 | file_info = {"file": (filename, filedata)} | |
| 446 | 446 | data = self.manager.gitlab.http_post(url, files=file_info) | |
| 447 | 447 | ||
@@ -538,7 +538,7 @@ def transfer_project(self, to_namespace: str, **kwargs: Any) -> None: | |||
| 538 | 538 | GitlabAuthenticationError: If authentication is not correct | |
| 539 | 539 | GitlabTransferProjectError: If the project could not be transferred | |
| 540 | 540 | """ | |
| 541 | - path = f"/projects/{self.id}/transfer" | ||
| 541 | + path = f"/projects/{self.encoded_id}/transfer" | ||
| 542 | 542 | self.manager.gitlab.http_put( | |
| 543 | 543 | path, post_data={"namespace": to_namespace}, **kwargs | |
| 544 | 544 | ) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments