gclient: When deleting untracked files, gracefully handle symlinks that point to dirs.
eg: https://logs.chromium.org/logs/chrome/buildbucket/cr-buildbucket.appspot.com/8898770399362199536/+/steps/bot_update/0/stdout bot_update ends up clobbering the checkout in that build due to: "Error: 161> Called rmtree(/b/s/w/ir/cache/builder/src/......) in non-directory" That's because we're trying to rmtree a file. This will instead unlink it. Bug: 991276 Change-Id: Icffa18c27ddbaced20fb3410a91ca8fcc849d5e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1877727Reviewed-by: Andrii Shyshkalov <tandrii@google.com> Commit-Queue: Ben Pastene <bpastene@chromium.org>
Showing
Please
register
or
sign in
to comment