diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-01-26 17:54:47 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-26 17:54:47 +0100 |
commit | 76bd1294d8ed21d2d7e8d35220a0e820969c5ee8 (patch) | |
tree | e71ffa8a4d0806c1f621bdf78140a9aeaa4820b2 /submodule-config.h | |
parent | Merge branch 'kh/maintenance-use-xdg-when-it-should' (diff) | |
parent | submodule-config.c: strengthen URL fsck check (diff) | |
download | git-76bd1294d8ed21d2d7e8d35220a0e820969c5ee8.tar.xz git-76bd1294d8ed21d2d7e8d35220a0e820969c5ee8.zip |
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
Diffstat (limited to 'submodule-config.h')
-rw-r--r-- | submodule-config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h index 958f320ac6..b6133af71b 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -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 |