Better cleanup and revert.
Bug: 243966946
Test: run locally
Change-Id: I09f7cb19bb7f97d807a75189bf75e7c2fd25edee
diff --git a/finalize-cleanup.sh b/finalize-cleanup.sh
index efa2707..e3bca63 100755
--- a/finalize-cleanup.sh
+++ b/finalize-cleanup.sh
@@ -9,7 +9,7 @@
repo selfupdate
repo forall -c '\
- git checkout . ; git clean -fdx ;\
+ 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 ;'
}