Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2cf2f9f9
Commit
2cf2f9f9
authored
Jul 17, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11473 from zmerlynn/remove_backmerge
Remove back-merge nonsense from mark-new-version.sh
parents
542ac8db
5ac5b973
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
40 deletions
+7
-40
mark-new-version.sh
build/mark-new-version.sh
+7
-40
No files found.
build/mark-new-version.sh
View file @
2cf2f9f9
...
@@ -143,57 +143,24 @@ echo "+++ Committing version change"
...
@@ -143,57 +143,24 @@ echo "+++ Committing version change"
git add
"
${
VERSION_FILE
}
"
git add
"
${
VERSION_FILE
}
"
git commit
-m
"Kubernetes version
${
NEW_VERSION
}
-dev"
git commit
-m
"Kubernetes version
${
NEW_VERSION
}
-dev"
echo
"+++ Constructing backmerge branches"
function
return_to_kansas
{
git checkout
-f
"
${
current_branch
}
"
}
trap
return_to_kansas EXIT
backmerge
=
"v
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
.
${
VERSION_PATCH
}
-merge-to-master"
backmergetmp
=
"
${
backmerge
}
-tmp-
$(
date
+%s
)
"
# Now we create a temporary branch to revert the doc commit, then
# create the backmerge branch for the convenience of the user.
git checkout
-b
"
${
backmergetmp
}
"
git revert
"
${
dochash
}
"
--no-edit
git checkout
-b
"
${
backmerge
}
"
"
${
fetch_remote
}
/master"
git merge
-s
recursive
-X
ours
"
${
backmergetmp
}
"
-m
"
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
.
${
VERSION_PATCH
}
merge to master"
git checkout
"
${
current_branch
}
"
git branch
-D
"
${
backmergetmp
}
"
echo
""
echo
""
echo
"Success you must now:"
echo
"Success you must now:"
echo
""
echo
""
echo
"- Push the tag:"
echo
"- Push the tag:"
echo
" git push
${
push_url
}
v
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
.
${
VERSION_PATCH
}
"
echo
" git push
${
push_url
}
v
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
.
${
VERSION_PATCH
}
"
echo
" - Please note you are pushing the tag live BEFORE your PRs."
echo
" - Please note you are pushing the tag live BEFORE your PRs."
echo
" You need this so the builds pick up the right tag info."
echo
" You need this so the builds pick up the right tag info
(and so your reviewers can see it)
."
echo
" If something goes wrong further down please fix the tag!"
echo
" If something goes wrong further down please fix the tag!"
echo
" Either delete this tag and give up, fix the tag before your next PR,"
echo
" Either delete this tag and give up, fix the tag before your next PR,"
echo
" or find someone who can help solve the tag problem!"
echo
" or find someone who can help solve the tag problem!"
echo
""
echo
""
if
[[
"
${
VERSION_PATCH
}
"
!=
"0"
]]
;
then
echo
"- Send branch:
${
current_branch
}
as a PR to
${
release_branch
}
<-- NOTE THIS"
echo
"- Get someone to review and merge that PR"
echo
""
fi
echo
"- I created the branch
${
backmerge
}
for you. What I don't know is if this is"
echo
" the latest version. If it is, AND ONLY IF IT IS, submit this branch as a pull"
echo
" request to master:"
echo
""
echo
" git push <personal>
${
backmerge
}
"
echo
""
echo
" and get someone to approve that PR. I know this branch looks odd. The purpose of this"
echo
" branch is to get the tag for the version onto master for things like 'git describe'."
echo
""
echo
" IF THIS IS NOT THE LATEST VERSION YOU WILL CAUSE TIME TO GO BACKWARDS. DON'T DO THAT, PLEASE."
echo
""
if
[[
"
${
VERSION_PATCH
}
"
==
"0"
]]
;
then
if
[[
"
${
VERSION_PATCH
}
"
==
"0"
]]
;
then
echo
"- Push the new release branch"
echo
"- Send branch:
${
current_branch
}
as a PR to
${
push_url
}
/master"
echo
" For major/minor releases, this gets the branch tag merged and changes the version numbers."
echo
"- Push the new release branch:"
echo
" git push
${
push_url
}
${
current_branch
}
:
${
release_branch
}
"
echo
" git push
${
push_url
}
${
current_branch
}
:
${
release_branch
}
"
else
echo
"- Send branch:
${
current_branch
}
as a PR to
${
release_branch
}
<-- NOTE THIS"
echo
" Get someone to review and merge that PR"
fi
fi
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