diff --git a/production/mempool-upgrade-all b/production/mempool-upgrade-all index 09bd94e05..a7e662c46 100755 --- a/production/mempool-upgrade-all +++ b/production/mempool-upgrade-all @@ -21,13 +21,15 @@ update_repo() cd "$HOME/${site}" || exit 1 git fetch origin || exit 1 - for remote in mempool MiguelMedeiros knorrium;do + for remote in origin knorrium hunicus;do git remote add "${remote}" "https://github.com/${remote}/mempool" >/dev/null 2>&1 git fetch "${remote}" || exit 1 done if [ $(git tag -l "${REF}") ];then git reset --hard "tags/${REF}" || exit 1 + elif [ $(git branch -r -l "origin/${REF}") ];then + git reset --hard "origin/${REF}" || exit 1 else git reset --hard "${REF}" || exit 1 fi