From 3addce3094b9f61a0755f1fb62c8df033b6def7a Mon Sep 17 00:00:00 2001 From: "ilevy@chromium.org" Date: Thu, 8 Nov 2012 23:02:13 +0000 Subject: [PATCH] Exclude some gclient commands from auto-update In an effort to make some local commands faster, I propose we exclude them from network dependent update step. R=maruel@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/11312143 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@166793 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gclient b/gclient index bba81cff1d..625f90e739 100755 --- a/gclient +++ b/gclient @@ -5,6 +5,8 @@ base_dir=$(dirname "$0") -"$base_dir"/update_depot_tools +if ! [[ "grep fetch cleanup diff" =~ "$1" ]]; then + "$base_dir"/update_depot_tools +fi PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"