Make Forgejo release deletion argv-safe #663
Labels
No labels
bug
documentation
duplicate
enhancement
fugitive
good first issue
help wanted
invalid
question
v0.1.0
v0.2.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/forge.nvim#663
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Forgejo release deletion builds a shell command by concatenating the release tag into
sh -c:lua/forge/backends/forgejo.lua:1266Release tags are accepted as unconstrained release subjects, so tags containing spaces or shell metacharacters can fail or be interpreted as shell syntax. GitHub and GitLab release deletion use argv-safe command tables.
Expected
Build the Forgejo delete command without shell string concatenation, or quote every dynamic component with a shared safe shell-argument helper if
tearequiressh -c.Non-goals
Do not change release picker behavior or release-delete confirmation semantics.
Context
Found during release-preview readiness audit. Remote Forgejo CI cannot currently be awaited because the Spark runner is down; use local verification for the fix.