From cf9a2a2a76b332c89fef40e47f7ddb4e8c817ab9 Mon Sep 17 00:00:00 2001 From: Kaushik Lingarkar Date: Tue, 17 Dec 2024 12:49:14 -0800 Subject: [PATCH] Update internal filesystem layout for submodules Change the bare checkout directory for submodules from 'subprojects' to 'modules'. Git expects bare submodule checkouts to be in the 'modules' directory. If old subproject directories are found, they will be migrated to the new modules directory. This change is the first step in ensuring Git can understand repo's submodules to some extent. Change-Id: I385029f1bb55d040616d970d6ffb4bb856692520 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/444881 Tested-by: Kaushik Lingarkar Reviewed-by: Josip Sokcevic --- docs/internal-fs-layout.md | 2 +- manifest_xml.py | 7 ++++++- project.py | 27 +++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/docs/internal-fs-layout.md b/docs/internal-fs-layout.md index f63978f3..c0e44778 100644 --- a/docs/internal-fs-layout.md +++ b/docs/internal-fs-layout.md @@ -141,7 +141,7 @@ Instead, you should use standard Git workflows like [git worktree] or (e.g. a local mirror & a public review server) while avoiding duplicating the content. However, this can run into problems if different remotes use the same path on their respective servers. Best to avoid that. -* `subprojects/`: Like `projects/`, but for git submodules. +* `modules/`: Like `projects/`, but for git submodules. * `subproject-objects/`: Like `project-objects/`, but for git submodules. * `worktrees/`: Bare checkouts of every project synced by the manifest. The filesystem layout matches the `