From c66908b638448b96cc804810b3afa5f639d6b344 Mon Sep 17 00:00:00 2001 From: Alex Buynytskyy Date: Wed, 28 Sep 2022 20:56:44 +0000 Subject: [PATCH] Revert all previous commits. Bug: 243966946 Test: time ./build/make/finalize-step-1.sh Change-Id: Iee5d3d76990d8f1785d34c0898ea86792e2d95fe --- finalize-step-1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finalize-step-1.sh b/finalize-step-1.sh index e8afba4342..9f87b6c559 100755 --- a/finalize-step-1.sh +++ b/finalize-step-1.sh @@ -11,7 +11,7 @@ function revert_local_changes() { git checkout . ; 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=1 --grep ^FINALIZATION_STEP_1_SCRIPT_COMMIT)" ;\ + previousHash="$(git log --format=%H --no-merges --max-count=100 --grep ^FINALIZATION_STEP_1_SCRIPT_COMMIT)" ;\ if [[ $previousHash ]]; then git revert --no-commit $previousHash ; fi ;' }