fix: Project deletion failing with permalink normalization (#345)

This commit is contained in:
Drew Cain
2025-10-10 12:18:03 -05:00
committed by GitHub
parent 8d2e70cfc8
commit be352ab474
3 changed files with 146 additions and 1 deletions
+2 -1
View File
@@ -354,7 +354,8 @@ class ConfigManager:
if project_name == config.default_project: # pragma: no cover
raise ValueError(f"Cannot remove the default project '{name}'")
del config.projects[name]
# Use the found project_name (which may differ from input name due to permalink matching)
del config.projects[project_name]
self.save_config(config)
def set_default_project(self, name: str) -> None: