Made version string more terse by using the short hash instead of the full one.

This commit is contained in:
Griatch 2014-02-15 16:58:14 +01:00
parent 9ceaeedd9b
commit 6198e59f04
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
Beta Beta-GIT

View file

@ -281,7 +281,7 @@ def get_evennia_version():
""" """
try: try:
f = open(settings.BASE_PATH + os.sep + "VERSION.txt", 'r') f = open(settings.BASE_PATH + os.sep + "VERSION.txt", 'r')
return "%s-r%s" % (f.read().strip(), os.popen("git log --format=\"%H\" -n 1").read().strip()) return "%s-%s" % (f.read().strip(), os.popen("git rev-parse --short HEAD").read().strip())
except IOError: except IOError:
return "Unknown version" return "Unknown version"