Skip to content

Commit cf15727

Browse files
committed
Prominently display repository protocol and URL that is used for import/add (clone)
1 parent af115ae commit cf15727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ def import_(url, path=None, ignore=False, depth=None, protocol=None, top=True):
15441544
error("Directory \"%s\" is not empty. Please ensure that the destination folder is empty." % repo.path, 1)
15451545

15461546
text = "Importing program" if top else "Adding library"
1547-
action("%s \"%s\" from \"%s/\"%s" % (text, relpath(cwd_root, repo.path), repo.url, ' at '+(repo.revtype(repo.rev, True))))
1547+
action("%s \"%s\" from \"%s\"%s" % (text, relpath(cwd_root, repo.path), formaturl(repo.url, protocol), ' at '+(repo.revtype(repo.rev, True))))
15481548
if repo.clone(repo.url, repo.path, rev=repo.rev, depth=depth, protocol=protocol):
15491549
with cd(repo.path):
15501550
Program(repo.path).set_root()

0 commit comments

Comments
 (0)