don't output git hash on release builds

develop
Myk Taylor 2023-04-24 16:12:37 -07:00
parent 54ea391b1d
commit 6c88fa6440
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -577,7 +577,7 @@ TitleVersionOverlay.ATTRS{
function TitleVersionOverlay:init() function TitleVersionOverlay:init()
local text = {} local text = {}
table.insert(text, 'DFHack ' .. dfhack.getDFHackVersion() .. table.insert(text, 'DFHack ' .. dfhack.getDFHackVersion() ..
(dfhack.isPrerelease() and (' (git: %s)'):format(dfhack.getGitCommit(true)) or '')) (dfhack.isRelease() and '' or (' (git: %s)'):format(dfhack.getGitCommit(true))))
if #dfhack.getDFHackBuildID() > 0 then if #dfhack.getDFHackBuildID() > 0 then
table.insert(text, NEWLINE) table.insert(text, NEWLINE)
table.insert(text, 'Build ID: ' .. dfhack.getDFHackBuildID()) table.insert(text, 'Build ID: ' .. dfhack.getDFHackBuildID())