mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Made version string more terse by using the short hash instead of the full one.
This commit is contained in:
parent
9ceaeedd9b
commit
6198e59f04
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Beta
|
||||
Beta-GIT
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue