Browse files

Merge branch 'develop'

  • Loading branch information...
2 parents cbdd531 + 8c19fa2 commit f32b6f1e89c13e873b2bdf68990ab335e3149d42 Adriaan Erasmus committed Oct 25, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 git-flow-init
View
13 git-flow-init
@@ -242,6 +242,19 @@ cmd_default() {
local prefix
+ # Project branches
+ if ! git config --get gitflow.prefix.project >/dev/null 2>&1 || flag force; then
+ default_suggestion=$(git config --get gitflow.prefix.project || echo project/)
+ printf "Project branches? [$default_suggestion] "
+ if noflag defaults; then
+ read answer
+ else
+ printf "\n"
+ fi
+ [ "$answer" = "-" ] && prefix= || prefix=${answer:-$default_suggestion}
+ git config gitflow.prefix.project "$prefix"
+ fi
+
# Feature branches
if ! git config --get gitflow.prefix.feature >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.feature || echo feature/)

0 comments on commit f32b6f1

Please sign in to comment.