Skip to content
Snippets Groups Projects
Commit 987aab57 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

Merge branch 'master' of https://git.astron.nl/lofar2.0/pypcc

parents a9c401f9 0ebce0d4
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ configs=[]
if not(args.test):
handler=opcuaserv.InitServer(port=args.port)
logging.info("Load OPCUA variables & start i2c listing thread")
opcuaserv.AddVarR("pypcc_git_hash",git_hash,[],False)
opcuaserv.AddVarR("TR_software_version_R",git_hash,[],False)
for i,name in enumerate(I2Cports):
RCU_I2C=I2Cclients[i]
RCU_conf=yamlreader.yamlreader(RCU_I2C,yamlfile=name)
......
......@@ -4,7 +4,8 @@ import subprocess
def _get_version_hash():
"""Talk to git and find out the tag/hash of our latest commit"""
try:
p = subprocess.Popen(["git", "rev-parse","HEAD"],
# p = subprocess.Popen(["git", "rev-parse","HEAD"],
p = subprocess.Popen(["git", "show","-s","--format=%ci"],
# p = subprocess.Popen(["git", "log","-1","--format='%H'"],
stdout=subprocess.PIPE)
except EnvironmentError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment