@@ -309,7 +309,7 @@ file= use given config file
309
309
if [ " $FLAGS_feature " != " " ]; then
310
310
default_suggestion=$( echo $FLAGS_feature )
311
311
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/)
313
313
fi
314
314
printf " Feature branches? [$default_suggestion ] "
315
315
if noflag defaults; then
@@ -326,7 +326,7 @@ file= use given config file
326
326
if [ " $FLAGS_bugfix " != " " ]; then
327
327
default_suggestion=$( echo $FLAGS_bugfix )
328
328
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/)
330
330
fi
331
331
printf " Bugfix branches? [$default_suggestion ] "
332
332
if noflag defaults; then
@@ -343,7 +343,7 @@ file= use given config file
343
343
if [ " $FLAGS_release " != " " ]; then
344
344
default_suggestion=$( echo $FLAGS_release )
345
345
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/)
347
347
fi
348
348
printf " Release branches? [$default_suggestion ] "
349
349
if noflag defaults; then
@@ -360,7 +360,7 @@ file= use given config file
360
360
if [ " $FLAGS_hotfix " != " " ]; then
361
361
default_suggestion=$( echo $FLAGS_hotfix )
362
362
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/)
364
364
fi
365
365
printf " Hotfix branches? [$default_suggestion ] "
366
366
if noflag defaults; then
@@ -377,7 +377,7 @@ file= use given config file
377
377
if [ " $FLAGS_support " != " " ]; then
378
378
default_suggestion=$( echo $FLAGS_support )
379
379
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/)
381
381
fi
382
382
printf " Support branches? [$default_suggestion ] "
383
383
if noflag defaults; then
@@ -394,7 +394,7 @@ file= use given config file
394
394
if [ " $FLAGS_tag " != " " ]; then
395
395
default_suggestion=$( echo $FLAGS_tag )
396
396
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 " " )
398
398
fi
399
399
printf " Version tag prefix? [$default_suggestion ] "
400
400
if noflag defaults; then
0 commit comments