fix(git): #710 guard tag create name and ref against a leading dash #731

Merged
hexajon merged 1 commit from issue-710-tag-dash-guard into main 2026-10-06 18:05:16 +00:00
Owner

Summary

Reject a leading-dash tag name and commit ref before they reach git tag argv, where git would read them as option flags. This mirrors the ValidateRef guard the push/fetch/branch paths already use. Two tests prove the create path refuses a --prefixed name and a --prefixed commit ref, and runs no git op.

Closes #710

## Summary Reject a leading-dash tag name and commit ref before they reach `git tag` argv, where git would read them as option flags. This mirrors the ValidateRef guard the push/fetch/branch paths already use. Two tests prove the create path refuses a `-`-prefixed name and a `-`-prefixed commit ref, and runs no git op. Closes #710
fix(git): #710 guard tag create name and ref against a leading dash
Some checks failed
ci / mcp-conformance (pull_request) Successful in 1m38s
ci / mcp-conformance (push) Successful in -16s
drift / govulncheck (push) Has been skipped
drift / surface-diff (push) Successful in -19s
drift / forgejo-smoke (push) Has been skipped
ci / gate (push) Failing after 15m35s
ci / gate (pull_request) Successful in 35m11s
drift / govulncheck (pull_request) Has been skipped
drift / forgejo-smoke (pull_request) Has been skipped
drift / surface-diff (pull_request) Successful in 39s
c665828105
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sixfold-space/madtea!731
No description provided.