From 8201a711afc5336242dacb21d880f36f7845f011 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 2 Nov 2026 02:34:41 +0100 Subject: Ensure that the current version has a tag before allowing to roll a distribution tarball --- ot_stats.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ot_stats.c') diff --git a/ot_stats.c b/ot_stats.c index 5edbe0a..59a9f04 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -635,11 +635,11 @@ void stats_return_tracker_features(char **reply, const char *reply_end) { void stats_return_tracker_version(char **reply, const char *reply_end) { fmt_append(reply, reply_end, "opentracker %s", OT_VERSION); - /* Empty when the build had no git to ask, which is what a release tarball - looks like */ - if (*GIT_VERSION) + if (*GIT_VERSION && strcmp(GIT_VERSION, OT_TAG)) fmt_append(reply, reply_end, " (%s)", GIT_VERSION); fmt_append(reply, reply_end, "\n"); + if (*OT_TAG) + fmt_append(reply, reply_end, "https://erdgeist.org/gitweb/opentracker/tag/?h=%s\n", OT_TAG); } void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format) { -- cgit v1.3