| Alex Buynytskyy | 56f69e0 | 2022-10-06 00:41:57 +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 | |||||
| 9 | repo selfupdate | ||||
| 10 | |||||
| 11 | repo forall -c '\ | ||||
| 12 | git checkout . ; git clean -fdx ;\ | ||||
| 13 | git checkout @ ; git b fina-step1 -D ; git reset --hard; \ | ||||
| 14 | repo start fina-step1 ; git checkout @ ; git b fina-step1 -D ;' | ||||
| 15 | } | ||||
| 16 | |||||
| 17 | finalize_revert_local_changes_main | ||||