Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit e9bea99

Browse files
Merge branch 'release/1.10.2'
2 parents a3c7e4e + b39deef commit e9bea99

8 files changed

+39
-32
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Cararus Eugeniu
3535
Chad Walker
3636
Craig Fowler
3737
Emre Berge Ergenekon
38+
Gregor A. Cieslak
3839
Gruen Christian-Rolf (Kiki)
3940
Guillaume-Jean Herbiet
4041
James Moran

Changes.mdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
# Changelog
3030

31+
#### 1.10.2
32+
[Peter van der Does][petervanderdoes]
33+
* Bugfix: Error finishing a release.
34+
3135
#### 1.10.1
3236
[Peter van der Does][petervanderdoes]
3337
* Bugfix: flag short name (p) already defined

README.mdown

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ preferably in a Github fork, of course.
109109

110110
To initialize a new repo with the basic branch structure, use:
111111

112-
git flow init [-d]
112+
git flow init [-d]
113113

114114
This will then interactively prompt you with some questions on which branches
115115
you would like to use as development and production branches, and how you
@@ -124,40 +124,40 @@ The ``-d`` flag will accept all defaults.
124124

125125
* To list/start/finish/delete feature branches, use:
126126

127-
git flow feature
128-
git flow feature start <name> [<base>]
129-
git flow feature finish <name>
130-
git flow feature delete <name>
127+
git flow feature
128+
git flow feature start <name> [<base>]
129+
git flow feature finish <name>
130+
git flow feature delete <name>
131131

132132
For feature branches, the `<base>` arg must be a branch, when omitted it defaults to the develop branch.
133133

134134
* To push/pull a feature branch to the remote repository, use:
135135

136-
git flow feature publish <name>
137-
git flow feature track <name>
136+
git flow feature publish <name>
137+
git flow feature track <name>
138138

139139
* To list/start/finish/delete release branches, use:
140140

141-
git flow release
142-
git flow release start <release> [<base>]
143-
git flow release finish <release>
144-
git flow release delete <release>
141+
git flow release
142+
git flow release start <release> [<base>]
143+
git flow release finish <release>
144+
git flow release delete <release>
145145

146146
For release branches, the `<base>` arg must be a branch, when omitted it defaults to the develop branch.
147147

148148
* To list/start/finish/delete hotfix branches, use:
149149

150-
git flow hotfix
151-
git flow hotfix start <release> [<base>]
152-
git flow hotfix finish <release>
153-
git flow hotfix delete <release>
150+
git flow hotfix
151+
git flow hotfix start <release> [<base>]
152+
git flow hotfix finish <release>
153+
git flow hotfix delete <release>
154154

155155
For hotfix branches, the `<base>` arg must be a branch, when omitted it defaults to the production branch.
156156

157157
* To list/start support branches, use:
158158

159-
git flow support
160-
git flow support start <release> <base>
159+
git flow support
160+
git flow support start <release> <base>
161161

162162
For support branches, the `<base>` arg must be a branch, when omitted it defaults to the production branch.
163163

@@ -167,21 +167,21 @@ You can easily publish a feature you are working on. The reason can be to allow
167167

168168
When you want to publish a feature just use:
169169

170-
git flow feature publish <name>
170+
git flow feature publish <name>
171171

172172
or, if you already are into the `feature/<name>` branch, just issue:
173173

174-
git flow feature publish
174+
git flow feature publish
175175

176176
Now if you execute `git branch -avv` you will see that your branch `feature/<name>` tracks `[origin/feature/<name>]`. To track the same remote branch in another clone of the same repository use:
177177

178-
git flow feature track <name>
178+
git flow feature track <name>
179179

180180
This will create a local feature `feature/<name>` that tracks the same remote branch as the original one, that is `origin/feature/<name>`.
181181

182182
When one developer (depending on your work flow) finishes working on the feature he or she can issue `git flow feature finish <name>` and this will automatically delete the remote branch. All other developers shall then run:
183183

184-
git flow feature delete <name>
184+
git flow feature delete <name>
185185

186186
to get rid of the local feature that tracks a remote branch that no more exist.
187187

git-flow-bugfix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,11 @@ showcommands! Show git commands while executing them
604604
# Parse arguments
605605
parse_args "$@"
606606

607-
warn "The command 'git flow bugfix checkout/co' will be deprecated per version 2.0.0"
608-
gitflow_require_name_arg
609-
610-
git_do checkout "$BRANCH" || die "Could not check out branch '$BRANCH'."
607+
NAME=$(gitflow_resolve_nameprefix "$NAME" "$PREFIX")
608+
if [ $? -eq 0 ]; then
609+
BRANCH=$PREFIX$NAME
610+
git_do checkout "$BRANCH" || die "Could not check out branch '$BRANCH'."
611+
fi
611612
}
612613

613614
cmd_co() {

git-flow-feature

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,11 @@ showcommands! Show git commands while executing them
612612
# Parse arguments
613613
parse_args "$@"
614614

615-
warn "The command 'git flow feature checkout/co' will be deprecated per version 2.0.0"
616-
gitflow_require_name_arg
617-
618-
git_do checkout "$BRANCH" || die "Could not check out branch '$BRANCH'."
615+
NAME=$(gitflow_resolve_nameprefix "$NAME" "$PREFIX")
616+
if [ $? -eq 0 ]; then
617+
BRANCH=$PREFIX$NAME
618+
git_do checkout "$BRANCH" || die "Could not check out branch '$BRANCH'."
619+
fi
619620
}
620621

621622
cmd_co() {

git-flow-release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _finish_from_develop() {
5656
require_branches_equal "$BRANCH" "$ORIGIN/$BRANCH"
5757
fi
5858
if git_remote_branch_exists "$ORIGIN/$MASTER_BRANCH"; then
59-
if flag ff-master; then
59+
if flag ff_master; then
6060
git_compare_refs "$MASTER_BRANCH" "$ORIGIN/$MASTER_BRANCH"
6161
compare_refs_result=$?
6262

git-flow-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
#
3737

38-
GITFLOW_VERSION=1.10.1
38+
GITFLOW_VERSION=1.10.2
3939

4040
initialize() {
4141
# A function can not be empty. Comments count as empty.

gitflow-common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ gitflow_resolve_nameprefix() {
342342
num_matches=$(echo "$matches" | wc -l)
343343
if [ -z "$matches" ]; then
344344
# no prefix match, so take it literally
345-
warn "No branch matches prefix '$name'"
345+
warn "No branches match '$prefix$name*'"
346346
return 1
347347
else
348348
if [ $num_matches -eq 1 ]; then

0 commit comments

Comments
 (0)