Skip to content

failed to create initial commit: failed to create initial commit: exit status 128 #116

Description

@vepain

If the user has not configurated their name and email, the initialization of a git-flow workflow is incomplete (but considered as complete).

To reproduce

Do not set (otherwise unset) your global and local user configs (as user.name and user.email)

> git flow init  --preset gitlab # for example
Error: failed to create branches: failed to create base branch 'production': failed to create initial commit: failed to create initial commit: exit status 128

> git flow init  --preset gitlab # to test a second time and observe git-flow considered it complete
Error: git-flow is already initialized in this repository. Use --force to reconfigure

> git flow overview
# Will see considered as complete

> git branch -l 
# no branch production

Expectation

  1. git-flow should check the completion of the initialization before considering it works
  2. git-flow should check the user name and email is configurated before doing anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions