Skip to content

Commit d9286ac

Browse files
committed
Merge branch 'js/http-custom-headers'
Update tests for "http.extraHeaders=<header>" to be portable back to Apache 2.2 (the original depended on <RequireAll/> which is a more recent feature). * js/http-custom-headers: submodule: ensure that -c http.extraheader is heeded t5551: make the test for extra HTTP headers more robust tests: adjust the configuration for Apache 2.2 Rebased-and-signed-off-by: Johannes Schindelin <[email protected]>
2 parents 4cc1f1b + 2efea40 commit d9286ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builtin/submodule--helper.c

+4
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)