aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/android
diff options
context:
space:
mode:
authorGravatar Ravi Mistry <rmistry@google.com>2017-09-11 10:47:34 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-11 15:23:00 +0000
commitb8163224228b0e702ed02331766d244e579d8b83 (patch)
tree7c49c3c50d69a77e9ce390f4de737bd072f907ec /tools/android
parentb5f3b656de82925e2598a3bfb77d8a2d39b7742c (diff)
Sync only the current branch and use a shallow checkout
Tried this out locally and it shrunk the size of the checkout from 1010M to 586M and shaved a few seconds off the running time as well. NoTry: true Bug: skia:7016 Change-Id: I472712e88d2cf30f0cfd71a373630d12a4937684 Reviewed-on: https://skia-review.googlesource.com/44820 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'tools/android')
-rw-r--r--tools/android/upload_to_android.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/android/upload_to_android.py b/tools/android/upload_to_android.py
index a033587578..6580b72f73 100644
--- a/tools/android/upload_to_android.py
+++ b/tools/android/upload_to_android.py
@@ -88,13 +88,12 @@ About to run repo init. If it hangs asking you to run glogin then please:
"""
os.chdir(android_dir)
subprocess.check_call(
- '%s init -u %s/a/platform/manifest -g "all,-notdefault,-darwin" -b master'
+ '%s init -u %s/a/platform/manifest -g "all,-notdefault,-darwin" '
+ '-b master --depth=1'
% (repo_binary, ANDROID_REPO_URL), shell=True)
print 'Syncing the Android checkout at %s' % android_dir
- print '%s sync %s tools/repohooks -j 32' % (
- repo_binary, SKIA_PATH_IN_ANDROID)
- subprocess.check_call('%s sync %s tools/repohooks -j 32' % (
+ subprocess.check_call('%s sync %s tools/repohooks -j 32 -c' % (
repo_binary, SKIA_PATH_IN_ANDROID), shell=True)
# Set the necessary git config options.