Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/discord-cluster-manager/cogs/admin_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@ async def update_problems(
)
return

if "/" in branch:
raise KernelBotError(f"branch names with slashes (`{branch}`) are not supported.")

repository_name = repository_name or env.PROBLEMS_REPO
url = f"https://github.com/{repository_name}/archive/{branch}.zip"
folder_name = repository_name.split("/")[-1] + "-" + branch
Expand Down
Loading