Skip to content

Commit bbe3165

Browse files
peffgitster
authored andcommitted
submodule: drop unused sm_name parameter from show_fetch_remotes()
This parameter has not been used since the function was introduced in 8c8195e (submodule--helper: introduce add-clone subcommand, 2021-07-10). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c8195e commit bbe3165

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builtin/submodule--helper.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,7 +2776,7 @@ struct add_data {
27762776
};
27772777
#define ADD_DATA_INIT { .depth = -1 }
27782778

2779-
static void show_fetch_remotes(FILE *output, const char *sm_name, const char *git_dir_path)
2779+
static void show_fetch_remotes(FILE *output, const char *git_dir_path)
27802780
{
27812781
struct child_process cp_remote = CHILD_PROCESS_INIT;
27822782
struct strbuf sb_remote_out = STRBUF_INIT;
@@ -2827,8 +2827,7 @@ static int add_submodule(const struct add_data *add_data)
28272827
fprintf(stderr, _("A git directory for '%s' is found "
28282828
"locally with remote(s):"),
28292829
add_data->sm_name);
2830-
show_fetch_remotes(stderr, add_data->sm_name,
2831-
submod_gitdir_path);
2830+
show_fetch_remotes(stderr, submod_gitdir_path);
28322831
free(submod_gitdir_path);
28332832
die(_("If you want to reuse this local git "
28342833
"directory instead of cloning again from\n"

0 commit comments

Comments
 (0)