From 5e10faf779bcd58a67bd0589b46a919239b9eef2 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 2 Jan 2017 10:03:17 -0800 Subject: [PATCH] tweak git_revision (VERSION has no newline, so git_revision shouldn't) --- gramps/gen/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/const.py b/gramps/gen/const.py index 8632cccdc..de2658221 100644 --- a/gramps/gen/const.py +++ b/gramps/gen/const.py @@ -134,7 +134,7 @@ USER_DIRLIST = (USER_HOME, HOME_DIR, VERSION_DIR, ENV_DIR, TEMP_DIR, THUMB_DIR, ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.insert(0, ROOT_DIR) -git_revision = get_git_revision(ROOT_DIR) +git_revision = get_git_revision(ROOT_DIR).replace('\n', '') if sys.platform == 'win32' and git_revision == "": git_revision = get_git_revision(os.path.split(ROOT_DIR)[1]) VERSION += git_revision