platform_build/finalize-cleanup.sh
Alex Buynytskyy 9fa8d9d5c5 Use full command instead of local alias.
Bug: 243966946
Test: local
Change-Id: I99b75cb8f9d35ba6615f27adc5dd0c10a47edaac
2022-11-08 15:21:31 -08:00

17 lines
450 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 branch fina-step1 -D ; git reset --hard; \
repo start fina-step1 ; git checkout @ ; git b fina-step1 -D ;'
}
finalize_revert_local_changes_main