Hi,

> From: Lev Stipakov <l...@openvpn.net>
> 
> Git magic to get branch name
> 
>   git rev-parse --symbolic-full-name HEAD
> 
> doesn't work when we're on tag, which is the case when
> we build releases. In this case, use tag name as branch name
> with another git magic:
> 
>   git describe --tags
> 
> This fixes https://github.com/OpenVPN/openvpn/issues/199.
> 
> Signed-off-by: Lev Stipakov <l...@openvpn.net>
> ---


For me, reason for "rev-parse" failing is detached HEAD (not clear from commit 
message).
Likely, builder creates checkout for commit-ID without local branches.

For stability purposes, I'd throw in an "--exact-match" to increase "none" 
fallback conditions,
so things like "v2.6_beta1-22-g73cab722/g73c…" will not end up in the version 
string.


Kind Regards,
Marc Becker


_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to