From: Christian Hesse Date: Mon, 4 Jun 2018 20:27:46 +0000 (+0200) Subject: print git version string in footer X-Git-Tag: v1.2~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e65ea965a07c7d48d269b2d2278d0101f7ac2b48;p=cgit print git version string in footer This helps tracking what git version cgit uses. The security implications are low as anybody can look up the version of our submodule anyway. The paranoid can use a custom footer. :-p On the other hand this brings potential security issues to the administrators eyes... Signed-off-by: Christian Hesse --- diff --git a/ui-shared.c b/ui-shared.c index ce806f6..0c6ca60 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -10,6 +10,7 @@ #include "ui-shared.h" #include "cmd.h" #include "html.h" +#include "version.h" static const char cgit_doctype[] = "\n"; @@ -785,8 +786,8 @@ void cgit_print_docend(void) if (ctx.cfg.footer) html_include(ctx.cfg.footer); else { - htmlf("