From 74fac43376a9ce7f68e94946bb705e5e941f8f4d Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Mon, 16 Aug 2021 16:35:26 +0200 Subject: [PATCH] log git revision hash to stdout/console Fixes #3963 --- src/game/server/gamecontext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 75cb296b5..0b6f11c34 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -3371,6 +3371,8 @@ void CGameContext::OnInit(/*class IKernel *pKernel*/) //game.world.insert_entity(game.Controller); + Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "git-revision", GIT_SHORTREV_HASH); + #ifdef CONF_DEBUG if(g_Config.m_DbgDummies) {