Revision be64da4f85ccf176f20f869a515b98778e40a0b0 authored by Vincent Botbol on 11 June 2019, 10:04:55 UTC, committed by Vincent Botbol on 11 June 2019, 10:04:55 UTC
p2p welcome: Don't stop the worker on accept error

See merge request tezos/tezos!1118
2 parent s b4e1611 + 81ae91b
Raw File
reset_chain.sh
#! /bin/sh

script_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"
cd "$script_dir"/..

branch=$1
has_git() {
    which git && [ -d .git ]
}

if has_git && ! [ -z "$(git status -s)" ] ; then
    echo "This script cannot be applied within a dirty git directory,"
    echo "you need 'stash' or 'commit' your changes before."
    exit 1
fi

set -e

cd scripts

ocaml gen_genesis.ml

git commit -a -m "Reset the chain"
back to top