tvdstaaij / node-git-describe

Git describe information at runtime, with semver support
36 stars 5 forks source link

tag attribute not returned #9

Closed fvisticot closed 6 years ago

fvisticot commented 6 years ago

When executing the command "git describe" from the console from my node index.js directory, I get the answer => 0.0.1 When getting the result from the node app (index.js), the tag is not returned

const gitInfo = gitDescribeSync();

Result is as follow. And you ca see that tag is left to null

{
    "dirty": false,
    "raw": "828f514",
    "hash": "828f514",
    "distance": null,
    "tag": null,
    "semver": null,
    "suffix": "828f514",
    "semverString": null
}
fvisticot commented 6 years ago

Oups.. error was due to the match option... my tag version was withoug v[0-9]* pattern