Commit 60f3af78 authored by Andrey Filippov's avatar Andrey Filippov

Update elphel-misc-functions.bbclass

parent 4ef9c5c5
......@@ -44,7 +44,7 @@ def revision_update(path,file):
pef = demote(st.st_uid, st.st_gid)
cmd = "cd "+path+"; git rev-list --count $(git log -1 --pretty=format:\"%H\" "+file+")..HEAD"
try:
res = subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True, preexec_fn=pef)).decode().strip()
res = subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True, preexec_fn=pef).decode().strip()
except subprocess.CalledProcessError as e:
res = "error_"+str(e.returncode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment