Closed
Description
Description
- Type: Bug
- Priority: Blocker
Bug
Target
Any
Toolchain:
Any
Toolchain version:
mbed-cli version:
0.9.1 (I tried 0.9.5, the same result)
meed-os sha:
dd5649d
Steps to reproduce
Export a simple project like blinky, or don't probably need to even export. Run mbed export -c -i uvision
, and your .git folder disappears and you get errors that your example is not git repository anymore.
mbed export -c --i uvision
Traceback (most recent call last):
File "mbed-os-example-blinky\mbed-os\tools\project.py", line 227, in <module>
main()
File "mbed-os-example-blinky\mbed-os\tools\project.py", line 223, in main
zip_proj=zip_proj, options=options.opts)
File "mbed-os-example-blinky\mbed-os\tools\project.py", line 87, in export
macros=macros, libraries_paths=lib, zip_proj=zip_name, options=options)
File "mbed-os-example-blinky\mbed-os\tools\project_api.py", line 181, in export_project
rmtree(export_path)
File "C:\Python27\lib\shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python27\lib\shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python27\lib\shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python27\lib\shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "C:\Python27\lib\shutil.py", line 250, in rmtree
os.remove(fullname)
WindowsError: [Error 5] Access is denied: '.\\.git\\objects\\pack\\pack-ba9f2748f01b8fc2786f100f74fe30b7d905f4a6.idx'
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u mbed-os-example-blinky\mbed-os\tools\project.py -i uvision -m UBLOX_C029 -c --source ." in "mbed-os-example-blinky"