Fix for git reference
This commit is contained in:
parent
d8cce5e245
commit
0b74ff04c9
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user