Merge changes I833bff2a,I87c60690

* changes:
  cronet import: set -e -x in cronet_import.sh
  cronet import: set gclient --delete_unversioned_trees
This commit is contained in:
Patrick Rohr
2023-03-24 15:58:48 +00:00
committed by Gerrit Code Review

View File

@@ -24,6 +24,8 @@
# -n rev: The new revision to import.
# -f: Force copybara to ignore a failure to find the last imported revision.
set -e -x
OPTSTRING=fl:n:
usage() {
@@ -55,7 +57,7 @@ setup_upstream_import_branch() {
# Arguments:
# new_rev, string
#######################################
setup_folder_origin() {
setup_folder_origin() (
local _new_rev=$1
mkdir -p "${COPYBARA_FOLDER_ORIGIN}"
cd "${COPYBARA_FOLDER_ORIGIN}"
@@ -83,9 +85,10 @@ EOF
cd src
# Set appropriate gclient flags to speed up syncing.
gclient sync \
--no-history
--shallow
}
--no-history \
--shallow \
--delete_unversioned_trees
)
#######################################
# Runs the copybara import of Chromium