How to fetch tags from git in Formula?

(Vitaly) #1

Project I want to build uses git tags to generate version string, however it doesn’t work in formula, because it clone repo without tags. Is it possible to fetch tags? Any example formula?

(Ed Flanagan) #2

You can specify Git tags in the formula url. See the Formula URL docs.

The packer formula may be a useful example.

(Vitaly) #3

That is not what I have looking for. I want to execute git commands in build process and check available tags in cloned repo