mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'vd/fsck-submodule-url-test'
Tighten URL checks fsck makes in a URL recorded for submodules. * vd/fsck-submodule-url-test: submodule-config.c: strengthen URL fsck check t7450: test submodule urls test-submodule: remove command line handling for check-name submodule-config.h: move check_submodule_url
This commit is contained in:
@@ -89,6 +89,9 @@ int config_set_in_gitmodules_file_gently(const char *key, const char *value);
|
||||
*/
|
||||
int check_submodule_name(const char *name);
|
||||
|
||||
/* Returns 0 if the URL valid per RFC3986 and -1 otherwise. */
|
||||
int check_submodule_url(const char *url);
|
||||
|
||||
/*
|
||||
* Note: these helper functions exist solely to maintain backward
|
||||
* compatibility with 'fetch' and 'update_clone' storing configuration in
|
||||
|
||||
Reference in New Issue
Block a user