Open andreasciamanna opened 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'
}
}
});
bump
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! :)
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 returns3.3.6-b2-264-g5d71-d
.