diff options
author | Albert Akmukhametov <arakmukhametov@salutedevices.com> | 2025-02-17 17:04:42 +0300 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-03-13 09:12:45 -0700 |
commit | 4b94e773efd36754f6c8649ad55b90d19a61107f (patch) | |
tree | 440f35763639becf735b12a770b1783dfc6700ba /tests/test_manifest_xml.py | |
parent | fc901b92bbcde2c16cd557322041abf958297665 (diff) | |
download | git-repo-4b94e773efd36754f6c8649ad55b90d19a61107f.tar.gz |
Sync: Fix full submodule sync while shallow specifiedv2.53
Git allows to clone submodules as shallow clone [1]. On the other
hand, when repo synchronize a projcet with submodules inside, it
ignores the shallow parameter.
When a project contains submodules, project.py parses the .gitmodules
file for URL and path. This parsing does not consider the shallow
option. Consequently, this parameter is not propgated to newly
created Project instance for that submodule.
[1] https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submoduleltnamegtshallow
Change-Id: I54fc9c69ae1b8e3cda2801202e3f0c7693b718d2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/454261
Tested-by: Albert Akmukhametov <alb.02057@gmail.com>
Commit-Queue: Albert Akmukhametov <alb.02057@gmail.com>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Никита Сказкоподателев (Nask) <skazkopodatelev@gmail.com>
Diffstat (limited to 'tests/test_manifest_xml.py')
0 files changed, 0 insertions, 0 deletions