Skip to content

git flow init -d does not use same defaults as git flow init #72

@VanNostrand

Description

@VanNostrand

git flow init shows the preset "v" when creating releases, so I expected git flow init -d to use that too, but with -d the prefix is empty.

For comparison:

mkdir x; cd x
git init
git flow init -d
echo hello > lorem.txt
git add lorem.txt
git commit -a -m 'foo'
git flow release start 1.0
git flow release finish 1.0 -m "first release" --no-fetch

git --no-pager tag results in: 1.0

mkdir x; cd x
git init
git flow init
Branch name for production releases [main]: 
Branch name for development [develop]: 
Feature branch prefix [feature/]: 
Bugfix branch prefix [bugfix/]: 
Release branch prefix [release/]: 
Hotfix branch prefix [hotfix/]: 
Support branch prefix [support/]: 
Version tag prefix [v]:
echo hello > lorem.txt
git add lorem.txt
git commit -a -m 'foo'

git flow release start 1.0
git flow release finish 1.0 -m "first release" --no-fetch

git --no-pager tag results in: v1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions