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:
commit
e3232af558
4 changed files with 29 additions and 45 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue