Skip to content

Commit 9ef23f9

Browse files
bmwillgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ea5095 commit 9ef23f9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

submodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,8 +1177,6 @@ static int get_next_submodule(struct child_process *cp,
11771177
continue;
11781178

11791179
submodule = submodule_from_path(&null_oid, ce->name);
1180-
if (!submodule)
1181-
submodule = submodule_from_name(&null_oid, ce->name);
11821180

11831181
default_argv = "yes";
11841182
if (spf->command_line_option == RECURSE_SUBMODULES_DEFAULT) {

0 commit comments

Comments
 (0)