Updated from upstream
diff --git a/git-flow-feature b/git-flow-feature
index d653ec1..39c1d19 100644
--- a/git-flow-feature
+++ b/git-flow-feature
@@ -9,17 +9,17 @@
# http://github.com/nvie/gitflow
#
# Copyright 2010 Vincent Driessen. All rights reserved.
-#
+#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
-#
+#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
-#
+#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
-#
+#
# THIS SOFTWARE IS PROVIDED BY VINCENT DRIESSEN ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
@@ -30,7 +30,7 @@
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
+#
# The views and conclusions contained in the software and documentation are
# those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of Vincent Driessen.
@@ -244,7 +244,7 @@
# TODO: detect that we're working on the correct branch here!
# The user need not necessarily have given the same $NAME twice here
# (although he/she should).
- #
+ #
# TODO: git_is_clean_working_tree() should provide an alternative
# exit code for "unmerged changes in working tree", which we should
@@ -270,7 +270,7 @@
echo "Merge conflicts not resolved yet, use:"
echo " git mergetool"
echo " git commit"
- echo
+ echo
echo "You can then complete the finish by running it again:"
echo " git flow feature finish $NAME"
echo
@@ -324,7 +324,7 @@
echo "There were merge conflicts. To resolve the merge conflict manually, use:"
echo " git mergetool"
echo " git commit"
- echo
+ echo
echo "You can then complete the finish by running it again:"
echo " git flow feature finish $NAME"
echo
@@ -344,8 +344,8 @@
if flag fetch; then
git push "$ORIGIN" ":refs/heads/$BRANCH"
fi
-
-
+
+
if noflag keep; then
if flag force_delete; then
git branch -D "$BRANCH"
@@ -475,7 +475,7 @@
cmd_pull() {
#DEFINE_string prefix false 'alternative remote feature branch name prefix' p
- DEFINE_boolean rebase false "pull with rebase" r
+ DEFINE_boolean rebase false "pull with rebase" r
parse_remote_name "$@"
if [ -z "$REMOTE" ]; then
@@ -501,14 +501,14 @@
# we already have a local branch called like this, so simply pull the
# remote changes in
- if flag rebase; then
- if ! git pull --rebase -q "$REMOTE" "$BRANCH"; then
- warn "Pull was aborted. There might be conflicts during rebase or '$REMOTE' might be inaccessible."
- exit 1
- fi
- else
- git pull -q "$REMOTE" "$BRANCH" || die "Failed to pull from remote '$REMOTE'."
- fi
+ if flag rebase; then
+ if ! git pull --rebase -q "$REMOTE" "$BRANCH"; then
+ warn "Pull was aborted. There might be conflicts during rebase or '$REMOTE' might be inaccessible."
+ exit 1
+ fi
+ else
+ it pull -q "$REMOTE" "$BRANCH" || die "Failed to pull from remote '$REMOTE'."
+ fi
echo "Pulled $REMOTE's changes into $BRANCH."
else