mirror of
https://github.com/mempool/mempool.git
synced 2025-01-01 03:04:27 +01:00
Merge pull request #996 from mempool/wiz/fix-upgrade-script-for-simon
Tweak upgrade script to search for remote origin branches
This commit is contained in:
commit
271726bf58
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user