test-tool submodule-config: remove unused "--url" handling
No test has used this "--url" parameter since the test code that made
use of it was removed in 32bc548329
(submodule-config: remove support
for overlaying repository config, 2017-08-03).
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
parent
31955475d1
commit
255a1ae5da
|
@ -15,14 +15,11 @@ int cmd__submodule_config(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
const char **arg = argv;
|
const char **arg = argv;
|
||||||
int my_argc = argc;
|
int my_argc = argc;
|
||||||
int output_url = 0;
|
|
||||||
int lookup_name = 0;
|
int lookup_name = 0;
|
||||||
|
|
||||||
arg++;
|
arg++;
|
||||||
my_argc--;
|
my_argc--;
|
||||||
while (arg[0] && starts_with(arg[0], "--")) {
|
while (arg[0] && starts_with(arg[0], "--")) {
|
||||||
if (!strcmp(arg[0], "--url"))
|
|
||||||
output_url = 1;
|
|
||||||
if (!strcmp(arg[0], "--name"))
|
if (!strcmp(arg[0], "--name"))
|
||||||
lookup_name = 1;
|
lookup_name = 1;
|
||||||
arg++;
|
arg++;
|
||||||
|
@ -57,12 +54,8 @@ int cmd__submodule_config(int argc, const char **argv)
|
||||||
if (!submodule)
|
if (!submodule)
|
||||||
die_usage(argc, argv, "Submodule not found.");
|
die_usage(argc, argv, "Submodule not found.");
|
||||||
|
|
||||||
if (output_url)
|
printf("Submodule name: '%s' for path '%s'\n", submodule->name,
|
||||||
printf("Submodule url: '%s' for path '%s'\n",
|
submodule->path);
|
||||||
submodule->url, submodule->path);
|
|
||||||
else
|
|
||||||
printf("Submodule name: '%s' for path '%s'\n",
|
|
||||||
submodule->name, submodule->path);
|
|
||||||
|
|
||||||
arg += 2;
|
arg += 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue