Skip to content

Commit c52636c

Browse files
committed
Fixed rare case of comparison between https and ssh schema of same repository
1 parent 193c00e commit c52636c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mbed/mbed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,8 @@ def update(rev=None, clean=False, clean_files=False, clean_deps=False, ignore=Fa
17741774
for lib in repo.libs:
17751775
if os.path.isdir(lib.path) and Repo.isrepo(lib.path):
17761776
lib_repo = Repo.fromrepo(lib.path)
1777-
if lib.url != lib_repo.url: # Repository URL has changed
1777+
if (not lib.is_local and not lib_repo.is_local and
1778+
formaturl(lib.url, 'https') != formaturl(lib_repo.url, 'https')): # Repository URL has changed
17781779
gc = False
17791780
with cd(lib.path):
17801781
gc, msg = lib_repo.can_update(clean, clean_deps)

0 commit comments

Comments
 (0)