Skip to content

[BUG] [v0.0.7] cortex pr rejects valid Git branch names containing + #53516

Description

@andrirevo

Project

cortex

Description

cortex pr --branch rejects branch names containing +, even though Git accepts many such ref names (validated via git check-ref-format). Users with legitimate branches like release+1 cannot use Cortex’s PR helper without renaming branches or bypassing the tool. The validator is stricter than Git, creating an artificial incompatibility.

Error Message

Debug Logs

System Information

macOS / 0.0.7

Screenshots

https://github.com/springoliver/bounty_challenge_report_image/blob/main/49116.mp4

Steps to Reproduce

  1. Open a terminal in a repo where cortex is configured.
  2. Run cortex pr --branch.
  3. Compare output/behavior with the issue narrative for this ID.

Expected Behavior

The reporter expects cortex to match documented CLI/TUI contracts for this flow—correct output, honest flags/help, and no silent contradictions—consistent with the problem statement at the top of this rewrite.

Actual Behavior

cortex pr --branch rejects branch names containing +, even though Git accepts many such ref names (validated via git check-ref-format). Users with legitimate branches like release+1 cannot use Cortex’s PR helper without renaming branches or bypassing the tool. The validator is stricter than Git, creating an artificial incompatibility.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions