Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
f2b40e2e
Commit
f2b40e2e
authored
Aug 11, 2021
by
github-actions
Browse files
Options
Browse Files
Download
Plain Diff
Merge upstream master into patched/master
parents
7418e783
7e464327
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
merge-upstream.sh
scripts/upgradeable/merge-upstream.sh
+9
-0
No files found.
scripts/upgradeable/merge-upstream.sh
View file @
f2b40e2e
...
@@ -18,5 +18,14 @@ upstream="${input#patched/}"
...
@@ -18,5 +18,14 @@ upstream="${input#patched/}"
branch
=
"patched/
$upstream
"
branch
=
"patched/
$upstream
"
git checkout
"
$branch
"
2>/dev/null
||
git checkout
-b
"
$branch
"
origin/patches
--no-track
git checkout
"
$branch
"
2>/dev/null
||
git checkout
-b
"
$branch
"
origin/patches
--no-track
git fetch
'https://github.com/OpenZeppelin/openzeppelin-contracts.git'
master
merge_base
=
"
$(
git merge-base origin/patches FETCH_HEAD
)
"
git fetch
'https://github.com/OpenZeppelin/openzeppelin-contracts.git'
"
$upstream
"
git fetch
'https://github.com/OpenZeppelin/openzeppelin-contracts.git'
"
$upstream
"
# Check that patches is not ahead of the upstream branch we're merging.
if
!
git merge-base
--is-ancestor
"
$merge_base
"
FETCH_HEAD
;
then
echo
"The patches branch is ahead of
$upstream
"
>
&2
exit
1
fi
git merge origin/patches FETCH_HEAD
-m
"Merge upstream
$upstream
into
$branch
"
git merge origin/patches FETCH_HEAD
-m
"Merge upstream
$upstream
into
$branch
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment