update submodule-cache example

This commit is contained in:
jaseg 2020-12-21 17:09:13 +01:00
parent c2593b63a3
commit 74507f4c36
2 changed files with 3 additions and 68 deletions

View file

@ -31,7 +31,7 @@ def list_submodule_prop(prop):
proc = subprocess.run('git config --file .gitmodules --get-regexp'.split() + [f'\.{prop}$'], check=True, capture_output=True)
for line in proc.stdout.splitlines():
key, value = line.split()
#example key: submodule.fw/hid-dials/upstream/st-hal-f0.url
#example key: submodule.fw/upstream/st-hal-f0.url
_, cfg_name, _ = key.split(b'.')
cfg_id = cfg_name.decode('utf-8')