Commit 257ca068 by Francisco Giordano

fix git branch upstream properly

parent b7974608
......@@ -17,6 +17,7 @@ input="${REF#refs/heads/}"
upstream="${input#patched/}"
branch="patched/$upstream"
git switch "$branch" 2>/dev/null || git switch -c "$branch" -t "origin/$branch" origin/patches
git checkout "$branch" 2>/dev/null || git checkout -b "$branch" origin/patches
git branch -u "origin/$branch"
git fetch 'https://github.com/OpenZeppelin/openzeppelin-contracts.git' "$upstream"
git merge origin/patches FETCH_HEAD -m "Merge upstream $upstream into $branch"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment