diff options
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) { |
