| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1360,6 +1360,7 @@ def save(self, branch, commit_message, **kwargs): | |||
| 1360 | 1360 | """ | |
| 1361 | 1361 | self.branch = branch | |
| 1362 | 1362 | self.commit_message = commit_message | |
| 1363 | + self.file_path = self.file_path.replace('/', '%2F') | ||
| 1363 | 1364 | super(ProjectFile, self).save(**kwargs) | |
| 1364 | 1365 | ||
| 1365 | 1366 | def delete(self, branch, commit_message, **kwargs): | |
@@ -1374,7 +1375,8 @@ def delete(self, branch, commit_message, **kwargs): | |||
| 1374 | 1375 | GitlabAuthenticationError: If authentication is not correct | |
| 1375 | 1376 | GitlabDeleteError: If the server cannot perform the request | |
| 1376 | 1377 | """ | |
| 1377 | - self.manager.delete(self.get_id(), branch, commit_message, **kwargs) | ||
| 1378 | + file_path = self.get_id().replace('/', '%2F') | ||
| 1379 | + self.manager.delete(file_path, branch, commit_message, **kwargs) | ||
| 1378 | 1380 | ||
| 1379 | 1381 | ||
| 1380 | 1382 | class ProjectFileManager(GetMixin, CreateMixin, UpdateMixin, DeleteMixin, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments