@@ -309,7 +309,7 @@ file= use given config file
309309 if [ " $FLAGS_feature " != " " ]; then
310310 default_suggestion=$( echo $FLAGS_feature )
311311 else
312- default_suggestion=$( git config --get gitflow.prefix.feature || echo feature/)
312+ default_suggestion=$( git config --get --system gitflow.prefix.feature || git config --get --global gitflow.prefix.feature || echo feature/)
313313 fi
314314 printf " Feature branches? [$default_suggestion ] "
315315 if noflag defaults; then
@@ -326,7 +326,7 @@ file= use given config file
326326 if [ " $FLAGS_bugfix " != " " ]; then
327327 default_suggestion=$( echo $FLAGS_bugfix )
328328 else
329- default_suggestion=$( git config --get gitflow.prefix.bugfix || echo bugfix/)
329+ default_suggestion=$( git config --get --system gitflow.prefix.bugfix || git config --get --global gitflow.prefix.bugfix || echo bugfix/)
330330 fi
331331 printf " Bugfix branches? [$default_suggestion ] "
332332 if noflag defaults; then
@@ -343,7 +343,7 @@ file= use given config file
343343 if [ " $FLAGS_release " != " " ]; then
344344 default_suggestion=$( echo $FLAGS_release )
345345 else
346- default_suggestion=$( git config --get gitflow.prefix.release || echo release/)
346+ default_suggestion=$( git config --get --system gitflow.prefix.release || git config --get --global gitflow.prefix.release || echo release/)
347347 fi
348348 printf " Release branches? [$default_suggestion ] "
349349 if noflag defaults; then
@@ -360,7 +360,7 @@ file= use given config file
360360 if [ " $FLAGS_hotfix " != " " ]; then
361361 default_suggestion=$( echo $FLAGS_hotfix )
362362 else
363- default_suggestion=$( git config --get gitflow.prefix.hotfix || echo hotfix/)
363+ default_suggestion=$( git config --get --system gitflow.prefix.hotfix || git config --get --global gitflow.prefix.hotfix || echo hotfix/)
364364 fi
365365 printf " Hotfix branches? [$default_suggestion ] "
366366 if noflag defaults; then
@@ -377,7 +377,7 @@ file= use given config file
377377 if [ " $FLAGS_support " != " " ]; then
378378 default_suggestion=$( echo $FLAGS_support )
379379 else
380- default_suggestion=$( git config --get gitflow.prefix.support || echo support/)
380+ default_suggestion=$( git config --get --system gitflow.prefix.support || git config --get --global gitflow.prefix.support || echo support/)
381381 fi
382382 printf " Support branches? [$default_suggestion ] "
383383 if noflag defaults; then
@@ -394,7 +394,7 @@ file= use given config file
394394 if [ " $FLAGS_tag " != " " ]; then
395395 default_suggestion=$( echo $FLAGS_tag )
396396 else
397- default_suggestion=$( git config --get gitflow.prefix.versiontag || echo " " )
397+ default_suggestion=$( git config --get --system gitflow.prefix.versiontag || git config --get --global gitflow.prefix.versiontag || echo " " )
398398 fi
399399 printf " Version tag prefix? [$default_suggestion ] "
400400 if noflag defaults; then
0 commit comments