Skip to content

feat: use the same rules as git for branch and tag name validation - #2626

Merged
love-linger merged 2 commits into
sourcegit-scm:developfrom
philfontaine:feat/ref-name-validation
Aug 18, 2026
Merged

feat: use the same rules as git for branch and tag name validation#2626
love-linger merged 2 commits into
sourcegit-scm:developfrom
philfontaine:feat/ref-name-validation

Conversation

@philfontaine

Copy link
Copy Markdown
Contributor

Fixes #2624

Comment thread src/Models/RefName.cs Outdated
if (string.IsNullOrEmpty(name))
return false;

return IsValidRefName(name);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SourceGit does not support remote with '/'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I excluded remotes from this PR

@philfontaine philfontaine changed the title feat: use the same rules as git for branch, tag and remote name validation Aug 17, 2026
@love-linger love-linger self-assigned this Aug 18, 2026
@love-linger love-linger added the enhancement New feature or request label Aug 18, 2026
@love-linger
love-linger merged commit aba413d into sourcegit-scm:develop Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

2 participants