diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:34:41 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:34:41 +0100 |
| commit | 8201a711afc5336242dacb21d880f36f7845f011 (patch) | |
| tree | 3be28e18ba8826d6d7218fb2be72760f387f09b3 /ot_stats.c | |
| parent | be82b2aa821d0635e8a7d12792b02e9e56675aa2 (diff) | |
Ensure that the current version has a tag before allowing to roll a distribution tarball
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -635,11 +635,11 @@ void stats_return_tracker_features(char **reply, const char *reply_end) { | |||
| 635 | 635 | ||
| 636 | void stats_return_tracker_version(char **reply, const char *reply_end) { | 636 | void stats_return_tracker_version(char **reply, const char *reply_end) { |
| 637 | fmt_append(reply, reply_end, "opentracker %s", OT_VERSION); | 637 | fmt_append(reply, reply_end, "opentracker %s", OT_VERSION); |
| 638 | /* Empty when the build had no git to ask, which is what a release tarball | 638 | if (*GIT_VERSION && strcmp(GIT_VERSION, OT_TAG)) |
| 639 | looks like */ | ||
| 640 | if (*GIT_VERSION) | ||
| 641 | fmt_append(reply, reply_end, " (%s)", GIT_VERSION); | 639 | fmt_append(reply, reply_end, " (%s)", GIT_VERSION); |
| 642 | fmt_append(reply, reply_end, "\n"); | 640 | fmt_append(reply, reply_end, "\n"); |
| 641 | if (*OT_TAG) | ||
| 642 | fmt_append(reply, reply_end, "https://erdgeist.org/gitweb/opentracker/tag/?h=%s\n", OT_TAG); | ||
| 643 | } | 643 | } |
| 644 | 644 | ||
| 645 | void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format) { | 645 | void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format) { |
