Browse Source

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>
Andrew Grieve 2 years ago
parent
commit
c2a4f5db62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gclient

+ 1 - 1
gclient

@@ -5,7 +5,7 @@
 
 
 base_dir=$(dirname "$0")
 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?
   # Shall skip authomatic update?
   if [[ $DEPOT_TOOLS_UPDATE != 0 ]]; then
   if [[ $DEPOT_TOOLS_UPDATE != 0 ]]; then
     "$base_dir"/update_depot_tools "$@"
     "$base_dir"/update_depot_tools "$@"