Rewrite Rugged::Reference.valid_name? in Ruby
What does this MR do and why?
Previously this code was written in libgit2, which forced GitLab to depend on Rugged. Rewrite this code in Ruby.
References:
git-core:
libgit2:
- https://github.com/libgit2/libgit2/blob/v1.9.1/src/libgit2/refs.c#L1418-L1425
- https://github.com/libgit2/libgit2/blob/v1.9.1/src/libgit2/refs.c#L908-L1040
Relates to #430709
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Stan Hu