mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
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>
This commit is contained in:
parent
5ea50954d0
commit
9ef23f91fc
@ -1177,8 +1177,6 @@ static int get_next_submodule(struct child_process *cp,
|
||||
continue;
|
||||
|
||||
submodule = submodule_from_path(&null_oid, ce->name);
|
||||
if (!submodule)
|
||||
submodule = submodule_from_name(&null_oid, ce->name);
|
||||
|
||||
default_argv = "yes";
|
||||
if (spf->command_line_option == RECURSE_SUBMODULES_DEFAULT) {
|
||||
|
Loading…
Reference in New Issue
Block a user