vojtajina / grunt-bump

Grunt.js plugin - Increment package version.
MIT License
652 stars 122 forks source link

bump:git produce unwanted version #184

Open andreasciamanna opened 8 years ago

andreasciamanna commented 8 years ago

Not sure if this is a bug or just a lack of knowledge from my side :)

I start with version 3.4.0.

Running grunt bump:git updates the version to that: 3.4.1-3.3.6-b2-264-g5d71.0

I see what bump does: it calls git describe --tags --always --abbrev=1 --dirty=-d which returns 3.3.6-b2-264-g5d71-d.

andreasciamanna commented 8 years ago

My configuration:

this.grunt.initConfig({
    pkg:  this.grunt.file.readJSON('package.json'),
    bump: {
        options: {
            files:         ['../sitepress.php'],
            commit:        false,
            createTag:     false,
            push:          false,
            globalReplace: true,
            prereleaseName: 'rc'
        }
    }
});
lzgrzebski commented 7 years ago

bump

helgeFox commented 5 years ago

I also get similar results as @andreasciamanna, but would like to have versioning as described in the documentation (just adding number of commits and commit hash). No luck configuring either grunt-bump nor the git-describe options... Any help would be appreciated! :)