diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-27 18:18:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-27 18:18:53 -0700 |
commit | 4fc7c4799014dd27d6584d4643f402720bef1f97 (patch) | |
tree | 42b2b1b7064337df34c3bb93a9cd47c6466f4dfa | |
parent | eb2a3afdd1611ec5003cb34a3bd8081da5c2cb14 (diff) | |
parent | 6b615dbeced33c67d42d3a5062207b8495ecf2a8 (diff) |
Merge branch 'ks/submodule-add-message-fix' into next
Message regression fix.
* ks/submodule-add-message-fix:
submodule: drop unused sm_name parameter from append_fetch_remotes()
-rw-r--r-- | builtin/submodule--helper.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 67ec6a699b..e630f0c730 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -2999,7 +2999,7 @@ struct add_data { }; #define ADD_DATA_INIT { .depth = -1 } -static void append_fetch_remotes(struct strbuf *msg, const char *sm_name, const char *git_dir_path) +static void append_fetch_remotes(struct strbuf *msg, const char *git_dir_path) { struct child_process cp_remote = CHILD_PROCESS_INIT; struct strbuf sb_remote_out = STRBUF_INIT; @@ -3054,8 +3054,7 @@ static int add_submodule(const struct add_data *add_data) "locally with remote(s):\n"), add_data->sm_name); - append_fetch_remotes(&msg, add_data->sm_name, - submod_gitdir_path); + append_fetch_remotes(&msg, submod_gitdir_path); free(submod_gitdir_path); strbuf_addf(&msg, _("If you want to reuse this local git " |