Merge branch 'js/filter-options-should-use-plain-int'
[gitweb.git] / builtin / submodule--helper.c
index 6881b6a9cb0fa1cd44118663cd8d7c8eaef1c95a..0e140f176ce3b559478a5bc4245bf36905c543cf 100644 (file)
@@ -2056,7 +2056,7 @@ static int ensure_core_worktree(int argc, const char **argv, const char *prefix)
        if (!sub)
                BUG("We could get the submodule handle before?");
 
-       if (repo_submodule_init(&subrepo, the_repository, path))
+       if (repo_submodule_init(&subrepo, the_repository, sub))
                die(_("could not get a repository handle for submodule '%s'"), path);
 
        if (!repo_config_get_string(&subrepo, "core.worktree", &cw)) {