Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitflow
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
tools
gitflow
Commits
ab3dc49b
Commit
ab3dc49b
authored
Jan 29, 2010
by
Vincent Driessen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: respect the VERSION_PREFIX in hotfix releases, too.
parent
e034e4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
git-flow-hotfix
git-flow-hotfix
+3
-2
No files found.
git-flow-hotfix
View file @
ab3dc49b
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
# Copyright (c) 2010 by Benedikt Böhm
# Copyright (c) 2010 by Benedikt Böhm
#
#
VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
PREFIX=$(git config --get gitflow.prefix.hotfix || echo hotfix/)
PREFIX=$(git config --get gitflow.prefix.hotfix || echo hotfix/)
usage() {
usage() {
...
@@ -98,7 +99,7 @@ cmd_finish() {
...
@@ -98,7 +99,7 @@ cmd_finish() {
# merge into BASE
# merge into BASE
git checkout $BASE
git checkout $BASE
git merge --no-ff $BRANCH
git merge --no-ff $BRANCH
git tag
v
$VERSION
git tag
$VERSION_PREFIX
$VERSION
# merge into develop if we fixed a master issue
# merge into develop if we fixed a master issue
# TODO: merge into support branch
# TODO: merge into support branch
...
@@ -117,7 +118,7 @@ cmd_finish() {
...
@@ -117,7 +118,7 @@ cmd_finish() {
echo "Summary of actions:"
echo "Summary of actions:"
echo "- Latest objects have been fetched from '$ORIGIN'"
echo "- Latest objects have been fetched from '$ORIGIN'"
echo "- Hotfix branch has been merged into '$BASE'"
echo "- Hotfix branch has been merged into '$BASE'"
echo "- The hotfix was tagged '
v
$VERSION'"
echo "- The hotfix was tagged '
$VERSION_PREFIX
$VERSION'"
if [ "$BASE" = "$MASTER_BRANCH" ]; then
if [ "$BASE" = "$MASTER_BRANCH" ]; then
echo "- Hotfix branch has been back-merged into '$DEVELOP_BRANCH'"
echo "- Hotfix branch has been back-merged into '$DEVELOP_BRANCH'"
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