@@ -624,7 +624,6 @@ def clone(url, path, rev=None, depth=None, protocol=None, name=None):
624
624
popen ([git_cmd , 'remote' , 'add' , 'origin' , url ])
625
625
626
626
else :
627
- print ("Cloning..." )
628
627
popen ([git_cmd , 'clone' , formaturl (url , protocol ), path ] + (['-v' ] if very_verbose else ([] if verbose else ['-q' ])))
629
628
630
629
def add (dest ):
@@ -1744,12 +1743,11 @@ def new(name, scm='git', program=False, library=False, mbedlib=False, create_onl
1744
1743
p .path = cwd_root
1745
1744
p .set_root ()
1746
1745
if not create_only and not p .get_os_dir () and not p .get_mbedlib_dir ():
1747
- url = mbed_lib_url if mbedlib else mbed_os_url + " #latest"
1746
+ url = mbed_lib_url if mbedlib else mbed_os_url + ' #latest'
1748
1747
d = 'mbed' if mbedlib else 'mbed-os'
1749
1748
try :
1750
1749
with cd (d_path ):
1751
1750
add (url , depth = depth , protocol = protocol , top = False )
1752
-
1753
1751
except Exception as e :
1754
1752
if os .path .isdir (os .path .join (d_path , d )):
1755
1753
rmtree_readonly (os .path .join (d_path , d ))
@@ -1821,7 +1819,7 @@ def import_(url, path=None, ignore=False, depth=None, protocol=None, top=True):
1821
1819
warning (err )
1822
1820
else :
1823
1821
error (err , 1 )
1824
-
1822
+
1825
1823
repo .sync ()
1826
1824
1827
1825
if top : # This helps sub-commands to display relative paths to the imported program
@@ -1857,8 +1855,8 @@ def add(url, path=None, ignore=False, depth=None, protocol=None, top=True):
1857
1855
lib .write ()
1858
1856
repo .add (lib .lib )
1859
1857
1860
- # if top:
1861
- # Program(repo.path).post_action()
1858
+ if top :
1859
+ Program (repo .path ).post_action ()
1862
1860
1863
1861
1864
1862
# Remove library
0 commit comments