diff options
author | Josip Sokcevic <sokcevic@chromium.org> | 2024-03-07 22:18:58 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-03-08 17:58:24 +0000 |
commit | 46790229fcdb041c414a27035b72cbc0d2e78af6 (patch) | |
tree | 67dd6b331edd153680e856b8859d99c634a4995d /subcmds/upload.py | |
parent | edadb25c0270398e9afa3eb0093d6b94aa51c3f4 (diff) | |
download | git-repo-46790229fcdb041c414a27035b72cbc0d2e78af6.tar.gz |
sync: Fix sorting for nested projects
The current logic to create checkout layers doesn't work in all cases.
For example, let's assume there are three projects: "foo", "foo/bar" and
"foo-bar". Sorting lexicographical order is incorrect as foo-bar would
be placed between foo and foo/bar, breaking layering logic.
Instead, we split filepaths based using path delimiter (always /) and
then use lexicographical sort.
BUG=b:325119758
TEST=./run_tests, manual sync on chromiumos repository
Change-Id: I76924c3cc6ba2bb860d7a3e48406a6bba8f58c10
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/412338
Tested-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: George Engelbrecht <engeg@google.com>
Diffstat (limited to 'subcmds/upload.py')
0 files changed, 0 insertions, 0 deletions