mirror of
https://github.com/mempool/mempool.git
synced 2025-01-17 18:52:34 +01:00
Tweak upgrade script to search for remote origin branches
This commit is contained in:
parent
053fb4d1b2
commit
9e8ee4fedc
@ -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