Skip to content

Branch names with special characters like ';$|>' causes errors on the command line (terminal executed git commands) #2028

@eamodio

Description

@eamodio

Originally reported by @mcy-kylin here

Open local clone repository with vscode; Create new branch and input name include ; $ | > &, not tips like xxxx isn't a valid branch name; There special characters are supported like git check-ref-format --branch , but run it with command line will occur exception for example, input branch name test;cd, run git branch test;cd master actually, same case branch name include $ | > & ;characters.

Add filter string include ; $ | > & characters function at check_ref_format ,avoid unknown exceptions when run git branch xxx commond.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions