Chromium Code Reviews| 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..e5bec99840e67c28cbc3907baf85baef7bbc5c61 100755 |
| --- a/tools/git_clone_to_google3.sh |
| +++ b/tools/git_clone_to_google3.sh |
| @@ -13,18 +13,21 @@ |
| 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 |
| +if [[ -z "${FLAGS_skia_rev}" ]]; then |
| + # Retrieve latest revision. |
| + FLAGS_skia_rev="$(git show --format=%H --no-patch origin/master)" |
| +elif [[ "${FLAGS_skia_rev}" =~ "[Ll][Kk][Gg][Rr]" ]]; then |
|
mtklein
2015/12/10 18:09:07
I agree so hard with this CL that we might conside
dogben
2015/12/10 18:18:38
Your wish is granted.
|
| # Retrieve last known good revision. |
| MY_DIR="$(gbash::get_absolute_caller_dir)" |
| FLAGS_skia_rev="$(${MY_DIR}/get_skia_lkgr.sh)" |