Skip to content

Commit d107229

Browse files
committed
Update the .lib reference in the parent repository when updating libraries
1 parent 435330d commit d107229

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mbed/mbed.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,11 @@ def sync(recursive=True, keep_refs=False, top=True):
13231323
with cd(lib.path):
13241324
sync(keep_refs=keep_refs, top=False)
13251325

1326+
# Update the .lib reference in the parent repository
1327+
if top and cwd_type == "library":
1328+
repo = Repo.fromrepo()
1329+
repo.write()
1330+
13261331

13271332
# List command
13281333
@subcommand('ls',

0 commit comments

Comments
 (0)