mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-27 13:31:56 +01:00
cros_mark_all_as_stable: add tracking branch support
The tracking branch is different between repo and gclient. BUG=5258 TEST=Verifed the tracking branching option is correctly propagated. Change-Id: I9e5b8cb68d335c47e47499b4964dcaa83ac26f76 Review URL: http://codereview.chromium.org/3037045
This commit is contained in:
parent
2272ae5ce2
commit
b4b6a260f2
@ -19,6 +19,8 @@ get_default_board
|
|||||||
|
|
||||||
DEFINE_string board "${DEFAULT_BOARD}" \
|
DEFINE_string board "${DEFAULT_BOARD}" \
|
||||||
"The board to set package keywords for."
|
"The board to set package keywords for."
|
||||||
|
DEFINE_string tracking_branch "origin" \
|
||||||
|
"Used with commit to specify branch to track against."
|
||||||
|
|
||||||
FLAGS "$@" || exit 1
|
FLAGS "$@" || exit 1
|
||||||
eval set -- "${FLAGS_ARGV}"
|
eval set -- "${FLAGS_ARGV}"
|
||||||
@ -65,5 +67,5 @@ info "Candidate package list ${PACKAGE_LIST}"
|
|||||||
info "With commit id list ${COMMIT_ID_LIST}"
|
info "With commit id list ${COMMIT_ID_LIST}"
|
||||||
|
|
||||||
./cros_mark_as_stable --board ${FLAGS_board} -p "${PACKAGE_LIST}" \
|
./cros_mark_as_stable --board ${FLAGS_board} -p "${PACKAGE_LIST}" \
|
||||||
-i "${COMMIT_ID_LIST}" commit || \
|
-i "${COMMIT_ID_LIST}" -t ${FLAGS_tracking_branch} commit || \
|
||||||
die "Could not mark all packages as stable"
|
die "Could not mark all packages as stable"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user