develop_branch uses origin/develop_branch as start-point if one exists.
By default a local develop branch is created of from master regardless if a origin/develop exits. This problem is discussed in issues #137 and #23.
diff --git a/gitflow-common b/gitflow-common
index 252f5d0..fb515de 100644
--- a/gitflow-common
+++ b/gitflow-common
@@ -97,6 +97,10 @@
has $1 $(git_local_branches)
}
+git_remote_branch_exists() {
+ has $1 $(git_remote_branches)
+}
+
git_branch_exists() {
has $1 $(git_all_branches)
}