Skip to content

Not possible to disable -dirty suffix completely #374

Description

@danh-fissara

It doesn't seem to be possible to disable or set a zero length string for the dirty suffix.

I'm guessing this is because the plugin conflates an empty string with the default value, and also maven whitespace stripping is a consideration.

Current Behavior

Setting <dirty></dirty> still creates the dirty suffix on the git.commit.id.describe output.

Steps to Reproduce (for bugs only)

  • Add untracked file to repo, check git describe: git describe --dirty -> 1.0.0-dirty
  • Attempt to disable dirty suffix with an empty string in config:
<gitDescribe>
    <dirty></dirty>
</gitDescribe>
  • Output of git.commit.id.describe still includes dirty suffix.

Environment (for bugs only)

Plugin: 2.2.4
Maven 3.3.9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions