Travis default clone statement is git clone --depth=50 which breaks git describe when there's more than 50 commits since last tag.
The fix is to do git fetch --unshallow to pull enough info to describe.
There may also be other approaches like fetch --tags that may be more optimal
Travis default clone statement is
git clone --depth=50
which breaksgit describe
when there's more than 50 commits since last tag. The fix is to dogit fetch --unshallow
to pull enough info to describe. There may also be other approaches likefetch --tags
that may be more optimal