Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ae7f4d7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add repo cleanup utility script." am: 909117a6

parents 1b3853fb 909117a6
Loading
Loading
Loading
Loading

finalize-cleanup.sh

0 → 100755
+17 −0
Original line number Diff line number Diff line
#!/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