My Android CircleCi project needs access to existing git tags to apply the correct version number to build artifacts. But it cannot find them, even after I added git fetch --tags
to circle.yml
.
Here’s an ssh transcript from the build machine showing the problem
$ git rev-parse HEAD
0038d1deef46f18e89ec8a0d7449eb0a559dde00
$ git rev-parse --verify 2.0.0-alpha
dd5b8c764a0c819bea7fb6d1f03483ea67f3a136
$ git describe --tags
fatal: No tags can describe '0038d1deef46f18e89ec8a0d7449eb0a559dde00'.
Try --always, or create some tags.
In the same SSH session, if I clone from github to another subfolder, it works fine and git describe --tags
finds the tag, no problem.