From 6198e59f04b6112e4f654b5c10b4d9b696bd98cf Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 15 Feb 2014 16:58:14 +0100 Subject: [PATCH] Made version string more terse by using the short hash instead of the full one. --- VERSION.txt | 2 +- src/utils/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index caed21a73a..4cc8a67cd0 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -Beta +Beta-GIT diff --git a/src/utils/utils.py b/src/utils/utils.py index a8065ab41c..3ffef26c8f 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -281,7 +281,7 @@ def get_evennia_version(): """ try: 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: return "Unknown version"