Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: gclient

Issue 11312143: Exclude some gclient commands from auto-update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient
diff --git a/gclient b/gclient
index bba81cff1dcece34b6cf52256a76a9b105a12cba..625f90e7394b3a961df5e30696013ecd847bba40 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" "$@"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698