blob: c62a97c19031dd496a6879ef147abd85525dd3b8 [file] [log] [blame]
Alex Buynytskyy56f69e02022-10-06 00:41:57 +00001#!/bin/bash
2# Brings local repository to a remote head state.
3
4# set -ex
5
6function finalize_revert_local_changes_main() {
7 local top="$(dirname "$0")"/../..
8
9 repo selfupdate
10
11 repo forall -c '\
Alex Buynytskyy739a3112022-11-02 20:01:30 +000012 git checkout . ; git revert --abort ; git clean -fdx ;\
Alex Buynytskyy9fa8d9d2022-11-08 23:19:47 +000013 git checkout @ ; git branch fina-step1 -D ; git reset --hard; \
Alex Buynytskyy56f69e02022-10-06 00:41:57 +000014 repo start fina-step1 ; git checkout @ ; git b fina-step1 -D ;'
15}
16
17finalize_revert_local_changes_main