Alex Buynytskyy | afddc07 | 2023-02-09 22:40:53 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Brings local repository to a remote head state. |
| 3 | |
| 4 | # set -ex |
| 5 | |
| 6 | function finalize_revert_local_changes_main() { |
| 7 | local top="$(dirname "$0")"/../../../.. |
| 8 | local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug" |
| 9 | |
| 10 | # remove the out folder |
| 11 | $m clobber |
| 12 | |
| 13 | repo selfupdate |
| 14 | |
| 15 | repo forall -c '\ |
| 16 | git checkout . ; git revert --abort ; git clean -fdx ;\ |
Alex Buynytskyy | e0e2f75 | 2024-03-06 20:49:57 +0000 | [diff] [blame] | 17 | git checkout @ --detach ; git branch fina-step1 -D ; git reset --hard; \ |
| 18 | repo start fina-step1 ; git checkout @ --detach ; git b fina-step1 -D ;' |
Alex Buynytskyy | afddc07 | 2023-02-09 22:40:53 +0000 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | finalize_revert_local_changes_main |