submodule: don't use submodule_from_name

The function 'submodule_from_name()' is being used incorrectly here as a submodule path is being used instead of a submodule name. Since the correct function to use with a path to a submodule is already being used ('submodule_from_path()') let's remove the call to 'submodule_from_name()'. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Williams committed Jul 25, 2017 at 14:39 UTC 9ef23f91fc22be9327288c8dbb10646bb0bf4340
1 file changed -2
submodule.c
-2
@@ -1177,8 +1177,6 @@ static int get_next_submodule(struct child_process *cp,
1177 continue;
1178
1179 submodule = submodule_from_path(&null_oid, ce->name);
1180 - if (!submodule)
1181 - submodule = submodule_from_name(&null_oid, ce->name);
1180
1181 default_argv = "yes";
1182 if (spf->command_line_option == RECURSE_SUBMODULES_DEFAULT) {