Skip to content

Commit 4aca99a

Browse files
committed
Merge branch 'jk/submodule-c-credential' into js/http-custom-headers
* jk/submodule-c-credential: submodule: stop sanitizing config options submodule: use prepare_submodule_repo_env consistently submodule--helper: move config-sanitizing to submodule.c submodule: export sanitized GIT_CONFIG_PARAMETERS t5550: break submodule config test into multiple sub-tests t5550: fix typo in $HTTPD_URL git_config_push_parameter: handle empty GIT_CONFIG_PARAMETERS git: submodule honor -c credential.* from command line quote: implement sq_quotef() submodule: fix segmentation fault in submodule--helper clone submodule: fix submodule--helper clone usage submodule: check argc count for git submodule--helper clone submodule: don't pass empty string arguments to submodule--helper clone Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 840c875 + 9a237b7 commit 4aca99a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builtin/submodule--helper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,10 @@ static int module_clone(int argc, const char **argv, const char *prefix)
515515
usage_with_options(git_submodule_helper_usage,
516516
module_clone_options);
517517

518+
if (argc || !url)
519+
usage_with_options(git_submodule_helper_usage,
520+
module_clone_options);
521+
518522
strbuf_addf(&sb, "%s/modules/%s", get_git_dir(), name);
519523
sm_gitdir = xstrdup(absolute_path(sb.buf));
520524
strbuf_reset(&sb);

0 commit comments

Comments
 (0)