Fix getrev runtime for the billionth time (#39845)

This commit is contained in:
Jordan Brown
2018-08-22 21:19:08 -04:00
committed by yogstation13-bot
parent ae859f8953
commit abc3e6abd1

View File

@@ -13,7 +13,7 @@
originmastercommit = revinfo.origin_commit
else
var/list/logs = world.file2list(".git/logs/HEAD")
if(logs)
if(logs.len)
logs = splittext(logs[logs.len - 1], " ")
date = unix2date(text2num(logs[5]))
commit = logs[2]