Skip to content

Commit 6d14f50

Browse files
committed
fixup! Script for keeping main branches of external repos in sync with upstream
1 parent be7da89 commit 6d14f50

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/externalTests/update_external_repos.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ function sync_branch
6666
echo "${fork_name}: syncing branch ${branch}..."
6767
pushd "$fork_name" > /dev/null
6868
git fetch upstream "$branch" --quiet
69-
git checkout "$branch" --quiet
69+
git checkout -B "$branch" --track "upstream/$branch" --quiet
7070
git merge "upstream/${branch}" --ff-only --quiet
7171
git push origin "$branch"
7272
popd > /dev/null
7373
}
7474

75+
mkdir -p "$target_dir"
76+
7577
echo "Entering ${target_dir}"
7678
cd "$target_dir"
7779

@@ -83,13 +85,13 @@ clone_repo ensdomains ens-contracts
8385
clone_repo euler-xyz euler-contracts
8486
clone_repo gnosis gp-v2-contracts
8587
clone_repo gnosis mock-contract
86-
clone_repo gnosis safe-contracts
8788
clone_repo gnosis util-contracts
8889
clone_repo JoinColony colonyNetwork
8990
clone_repo mycelium-ethereum perpetual-pools-contracts
9091
clone_repo OpenZeppelin openzeppelin-contracts
9192
clone_repo paulrberg prb-math
9293
clone_repo pooltogether v4-core pooltogether-v4-core
94+
clone_repo safe-global safe-contracts
9395
clone_repo smartcontractkit chainlink
9496
clone_repo sushiswap trident
9597
clone_repo Uniswap v2-core uniswap-v2-core
@@ -105,13 +107,13 @@ sync_branch ens-contracts master
105107
sync_branch euler-contracts master
106108
sync_branch gp-v2-contracts main
107109
sync_branch mock-contract master
108-
sync_branch safe-contracts main
109110
sync_branch util-contracts main
110111
sync_branch colonyNetwork develop
111112
sync_branch perpetual-pools-contracts develop
112113
sync_branch openzeppelin-contracts master
113114
sync_branch prb-math main
114115
sync_branch pooltogether-v4-core master
116+
sync_branch safe-contracts main
115117
sync_branch chainlink develop
116118
sync_branch trident master
117119
sync_branch uniswap-v2-core master

0 commit comments

Comments
 (0)