Fix for git reference

This commit is contained in:
Dirk Alders 2023-02-09 15:55:21 +01:00
parent d8cce5e245
commit 0b74ff04c9

View File

@ -17,7 +17,7 @@ logger = logging.getLogger(config.APP_NAME)
VERS_MAJOR = 1
VERS_MINOR = 0
VERS_PATCH = 0
VERS_PATCH = 1
INFO_TOPIC = "__info__"
INFO_DATA = {
@ -30,7 +30,7 @@ INFO_DATA = {
},
"git": {
"url": subprocess.check_output(["git", "config", "--get", "remote.origin.url"])[:-1].decode("utf-8"),
"ref": subprocess.check_output(["git", "log", "-1", '--format="%H"'])[2:-2].decode("utf-8")
"ref": subprocess.check_output(["git", "log", "-1", '--format="%H"'])[1:-2].decode("utf-8")
}
}