[ports]: GH_TAGNAME: how to figure out this tagname on downloadable archives?
mat at FreeBSD.org
Mon Oct 16 14:46:35 UTC 2017
Le 15/10/2017 à 21:47, O. Hartmann a écrit :
> Am Sun, 15 Oct 2017 12:35:49 -0700
> Yuri <yuri at rawbw.com> schrieb:
>> On 10/15/17 12:19, O. Hartmann wrote:
>>> Out of the blue there is a so called GH_TAGNAME. It reflects some late commit/revision
>>> number on an archive. Now I try to figure out how to find such a GH_TAGNAME. Since I
>>> do not push stuff to github, it is some new playfield and there might be an easy way
>>> to figure out, but this way is obscured to me right now.
>> GH_TAGNAME is the git commit hash, a hexadecimal number. github shows them for every
>> commit. Usually, 7 first characters suffice. GH_TAGNAME overrides the port version when
>> tarball is fetched. Just copy and paste it. :-)
> Hello, thanks for your response,
> all right, that is what I picked up from the porter's handbook, but I must have
> overlooked the note (if there is anything like that) regarding the sufficient first 7
The first 7 digits may, or may not be sufficient. 7 is a magic number,
and should not be used. You should, instead, ask git directly what the
abbreviation should be with, for instance, `git log --abbrev-commit`.
It may give you a number that seven digits long, but it may very well
give you a longer one. I repeat, do not simply truncate a hash to its
first 7 digits, it may not be enough.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 949 bytes
Desc: OpenPGP digital signature
More information about the freebsd-ports