mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
Making modifications to getrev, requested by Nodrak x
You can now change the link to your github project by modifying config/git_host.txt Removed config/svndir.txt, as it is no longer needed. Signed-off-by: carnie <elly1989@rocketmail.com>
This commit is contained in:
@@ -7,11 +7,15 @@ var/global/datum/getrev/revdata = new()
|
||||
|
||||
//Oh yeah, I'm an OOP fag, lalala
|
||||
/datum/getrev
|
||||
var/project_href = "https://www.github.com/tgstation/-tg-station"
|
||||
var/project_href
|
||||
var/revision
|
||||
var/showinfo
|
||||
|
||||
New()
|
||||
if(fexists("config/git_host.txt"))
|
||||
project_href = file2text("config/git_host.txt")
|
||||
else
|
||||
project_href = "https://www.github.com/tgstation/-tg-station"
|
||||
var/list/head_log = file2list(".git/logs/HEAD", "\n")
|
||||
for(var/line=head_log.len, line>=1, line--)
|
||||
if(head_log[line])
|
||||
|
||||
Reference in New Issue
Block a user