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.
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 | 3 years ago | |
| coverage_utils.py | 2 years ago | |
| fake_cipd.py | 2 years ago | |
| fake_repos.py | 1 year ago | |
| filesystem_mock.py | 2 years ago | |
| git_test_utils.py | 2 years ago | |
| presubmit_canned_checks_test_mocks.py | 1 month ago | |
| subprocess2_test_script.py | 2 years ago | |
| test_case_utils.py | 2 years ago | |
| trial_dir.py | 2 years ago | |