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:
carnie
2013-03-21 03:54:27 +00:00
parent 05afc4f52c
commit d7f92c2d7a
3 changed files with 6 additions and 6 deletions
+5 -1
View File
@@ -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])