- Removed quoting in has $SOME_BRANCH $(get_remote_branches), as the check was always false
- Added fetching develop branch from origin when fetch flag is on in feature finish
diff --git a/git-flow-release b/git-flow-release
index 05815bc..f81dd9f 100644
--- a/git-flow-release
+++ b/git-flow-release
@@ -164,7 +164,7 @@
if flag fetch; then
git fetch -q "$ORIGIN" "$DEVELOP_BRANCH"
fi
- if has "$ORIGIN/$DEVELOP_BRANCH" "$(git_remote_branches)"; then
+ if has "$ORIGIN/$DEVELOP_BRANCH" $(git_remote_branches); then
require_branches_equal "$DEVELOP_BRANCH" "$ORIGIN/$DEVELOP_BRANCH"
fi
@@ -211,10 +211,10 @@
git fetch -q "$ORIGIN" "$DEVELOP_BRANCH" || \
die "Could not fetch $DEVELOP_BRANCH from $ORIGIN."
fi
- if has "$ORIGIN/$MASTER_BRANCH" "$(git_remote_branches)"; then
+ if has "$ORIGIN/$MASTER_BRANCH" $(git_remote_branches); then
require_branches_equal "$MASTER_BRANCH" "$ORIGIN/$MASTER_BRANCH"
fi
- if has "$ORIGIN/$DEVELOP_BRANCH" "$(git_remote_branches)"; then
+ if has "$ORIGIN/$DEVELOP_BRANCH" $(git_remote_branches); then
require_branches_equal "$DEVELOP_BRANCH" "$ORIGIN/$DEVELOP_BRANCH"
fi