From 0c89fdd739183234f86fe2be03a0374705ed93ed Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Wed, 28 Mar 2018 15:35:30 -0700 Subject: submodule-config: remove submodule_from_cache This continues the story of bf12fcdf5e (submodule-config: store the_submodule_cache in the_repository, 2017-06-22). The previous patch taught submodule_from_path to take a repository into account, such that submodule_from_{path, cache} are the same now. Remove submodule_from_cache, migrating all its callers to submodule_from_path. Reviewed-by: Jonathan Tan Signed-off-by: Stefan Beller Reviewed-by: Jonathan Tan Signed-off-by: Junio C Hamano --- repository.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repository.c') diff --git a/repository.c b/repository.c index a4848c1bd0..eb5b8e9f5a 100644 --- a/repository.c +++ b/repository.c @@ -176,7 +176,7 @@ int repo_submodule_init(struct repository *submodule, struct strbuf worktree = STRBUF_INIT; int ret = 0; - sub = submodule_from_cache(superproject, &null_oid, path); + sub = submodule_from_path(superproject, &null_oid, path); if (!sub) { ret = -1; goto out; -- cgit v1.2.3