Merge "Add repo cleanup utility script."
This commit is contained in:
commit
909117a6e1
1 changed files with 17 additions and 0 deletions
17
finalize-cleanup.sh
Executable file
17
finalize-cleanup.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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 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
|
Loading…
Reference in a new issue