erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

handle failed git describe command #773

Closed tsloughter closed 4 years ago

tsloughter commented 4 years ago

Currently getting a version based on git tags uses the command, Tag = os:cmd("git describe --abbrev=0 --tags"), which can fail if there are no tags.

Rebar3 handles this by using a port and returning an error so it can fall back to 0.0.0 as the version. Relx needs to do the same.

tsloughter commented 4 years ago

Fixed in master.