1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-24 18:00:55 +01:00

Merge pull request #14253 from NixOS/libgit2-refname-wa

libfetchers/git-utils: Be more correct about validating refnames
This commit is contained in:
Sergei Zimmerman 2025-10-15 19:30:53 +00:00 committed by GitHub
commit e3232af558
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 45 deletions

View file

@ -59,6 +59,9 @@ invalid_ref() {
}
valid_ref 'A/b'
valid_ref 'AaA/b'
valid_ref 'FOO/BAR/BAZ'
valid_ref 'foox'
valid_ref '1337'
valid_ref 'foo.baz'