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

Unified Diff: tools/git_clone_to_google3.sh

Issue 1508313004: Change google3 sync scripts to sync latest rather than LKGR. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Remove LKGR support. Created 5 years 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 | « tools/get_skia_lkgr.sh ('k') | tools/sync_google3.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/git_clone_to_google3.sh
diff --git a/tools/git_clone_to_google3.sh b/tools/git_clone_to_google3.sh
index 9f64fc75144a37198f91cb01c67010ddf02f9ce0..e9f041ca0abadf25f8d06aaad3ae0ae7f1c34d16 100755
--- a/tools/git_clone_to_google3.sh
+++ b/tools/git_clone_to_google3.sh
@@ -13,21 +13,20 @@
prodcertstatus -q || (echo "Please run prodaccess." 1>&2; exit 1)
source gbash.sh || exit 2
-DEFINE_string skia_rev "" "Git hash of Skia revision to clone, default LKGR."
+DEFINE_string skia_rev "" "Git hash of Skia revision to clone, default latest."
gbash::init_google "$@"
set -e
-# Checkout LKGR of Skia in a temp location.
+# Checkout specified revision of Skia in a temp location.
TMP=$(gbash::make_temp_dir)
pushd "${TMP}"
git clone https://skia.googlesource.com/skia
cd skia
git fetch
-if [ -z "${FLAGS_skia_rev}" ]; then
- # Retrieve last known good revision.
- MY_DIR="$(gbash::get_absolute_caller_dir)"
- FLAGS_skia_rev="$(${MY_DIR}/get_skia_lkgr.sh)"
+if [[ -z "${FLAGS_skia_rev}" ]]; then
+ # Retrieve latest revision.
+ FLAGS_skia_rev="$(git show --format=%H --no-patch origin/master)"
fi
git checkout --detach "${FLAGS_skia_rev}"
« no previous file with comments | « tools/get_skia_lkgr.sh ('k') | tools/sync_google3.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698