Merge "Only revert until the latest baseline." am: fbb395442c
Original change: https://android-review.googlesource.com/c/platform/build/+/2289886 Change-Id: I3b8c6562e538086f48a81c10a6b309ed1f43b65d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
3c83bc5c2c
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,12 @@ function revert_to_unfinalized_state() {
|
|||
git checkout . ; git revert --abort ; git clean -fdx ;\
|
||||
git checkout @ ; git b fina-step1 -D ; git reset --hard; \
|
||||
repo start fina-step1 ; git checkout @ ; git b fina-step1 -D ;\
|
||||
previousHash="$(git log --format=%H --no-merges --max-count=100 --grep ^FINALIZATION_STEP_1_SCRIPT_COMMIT | tr \n \040)" ;\
|
||||
baselineHash="$(git log --format=%H --no-merges --max-count=1 --grep ^FINALIZATION_STEP_1_BASELINE_COMMIT)" ;\
|
||||
if [[ $baselineHash ]]; then
|
||||
previousHash="$(git log --format=%H --no-merges --max-count=100 --grep ^FINALIZATION_STEP_1_SCRIPT_COMMIT $baselineHash..HEAD | tr \n \040)" ;\
|
||||
else
|
||||
previousHash="$(git log --format=%H --no-merges --max-count=100 --grep ^FINALIZATION_STEP_1_SCRIPT_COMMIT | tr \n \040)" ;\
|
||||
fi ; \
|
||||
if [[ $previousHash ]]; then git revert --no-commit --strategy=ort --strategy-option=ours $previousHash ; fi ;'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue