You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/testing_support
Josiah Kiehl 4244c70855 Handle Windows command line limits in CheckForCommitObjects.
On Windows, the command line has a character limit of 8191. When checking for commit objects in submodules, the `git ls-tree` command can become very long if many files are affected, potentially exceeding this limit.

This change modifies `CheckForCommitObjects` to check the estimated length of the `git ls-tree` command when running on Windows. If the command line with all affected files would exceed the limit, it falls back to using a recursive `ls-tree` (`-r`) instead of listing each file individually. This prevents command line overflow errors on Windows.

Change-Id: I6a340baefee57f5933473add0601a42ff1e61bb6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7254474
Auto-Submit: Josiah Kiehl <kiehl@google.com>
Commit-Queue: Josiah Kiehl <kiehl@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
1 month ago
..
__init__.py
cipd
cipd.bat
coverage_utils.py
fake_cipd.py
fake_repos.py Update CMDgitmodules to set `gclient-recursedeps` in .gitmodules file. 1 year ago
filesystem_mock.py
git_test_utils.py Add git squash-branch-tree 2 years ago
presubmit_canned_checks_test_mocks.py Handle Windows command line limits in CheckForCommitObjects. 1 month ago
subprocess2_test_script.py
test_case_utils.py
trial_dir.py