Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'repository.c')
-rw-r--r--repository.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/repository.c b/repository.c
index e4a1afb0ac..c5b90ba93e 100644
--- a/repository.c
+++ b/repository.c
@@ -216,8 +216,7 @@ int repo_submodule_init(struct repository *subrepo,
}
strbuf_reset(&gitdir);
- strbuf_repo_git_path(&gitdir, superproject,
- "modules/%s", sub->name);
+ submodule_name_to_gitdir(&gitdir, superproject, sub->name);
if (repo_init(subrepo, gitdir.buf, NULL)) {
ret = -1;