mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Makes getrev not smoothbrain when there's no .git folder (#39016)
This commit is contained in:
committed by
yogstation13-bot
parent
da72546b7d
commit
dd4be687e4
@@ -13,6 +13,11 @@
|
||||
date = unix2date(text2num(logs[5]))
|
||||
commit = logs[2]
|
||||
log_world("[commit]: [date]")
|
||||
else
|
||||
log_world("Unable to read git logs, revision information not available")
|
||||
originmastercommit = commit = "Unknown"
|
||||
date = unix2date(world.timeofday)
|
||||
return
|
||||
logs = world.file2list(".git/logs/refs/remotes/origin/master")
|
||||
if(logs.len)
|
||||
originmastercommit = splittext(logs[logs.len - 1], " ")[2]
|
||||
|
||||
Reference in New Issue
Block a user