platform_build/finalize-cleanup.sh
Alex Buynytskyy 739a311cc6 Better cleanup and revert.
Bug: 243966946
Test: run locally
Change-Id: I09f7cb19bb7f97d807a75189bf75e7c2fd25edee
2022-11-03 14:43:58 +00:00

17 lines
445 B
Bash
Executable file

#!/bin/bash
# Brings local repository to a remote head state.
# set -ex
function finalize_revert_local_changes_main() {
local top="$(dirname "$0")"/../..
repo selfupdate
repo forall -c '\
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 ;'
}
finalize_revert_local_changes_main