Skip to content

PreReleaseNumber is string instead of integere in new repository #1688

@andreabisiach

Description

@andreabisiach

Hello,

during some test for a gradle wrapper plugin I have encountered a scenario where PreReleaseNumber returns a "" string instead of an integer.

To reproduce:

mkdir testrepo
cd testrepo
git init
touch somefile
git add .
git commit -m "added somefile"
gitversion

the output shows
"PreReleaseNumber":""

I would expect 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions