Skip gclient auto-update for "getdep", "root", "help", "--help"

These are all things I would expect to not hit the network.

Bug: None
Change-Id: I44bddd94e8da13df57f3cd068def9a5e51774bc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4161184
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
changes/84/4161184/4
Andrew Grieve 3 years ago committed by LUCI CQ
parent 4f3b322a39
commit c2a4f5db62

@ -5,7 +5,7 @@
base_dir=$(dirname "$0")
if [[ "#grep#fetch#cleanup#diff#setdep#recurse#" != *"#$1#"* ]]; then
if [[ "#grep#fetch#cleanup#diff#help#getdep#root#setdep#recurse#--help#" != *"#$1#"* ]]; then
# Shall skip authomatic update?
if [[ $DEPOT_TOOLS_UPDATE != 0 ]]; then
"$base_dir"/update_depot_tools "$@"

Loading…
Cancel
Save