Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 9 months ago.
mbed add gives error "Unable to clone repository"
Hi, I am trying to add/clone a repo to my local laptop...but whenever I run it gives the following lines:
[mbed] Working path "C:\Users\dell\Documents\nrf52832-mdk\examples\mbedos5\mbed-os-example-ble\BLE_SM\libraries" (library) [mbed] Program path "C:\Users\dell\Documents\nrf52832-mdk\examples\mbedos5\mbed-os-example-ble\BLE_SM" [mbed] WARNING: Program "BLE_SM" in "C:\Users\dell\Documents\nrf52832-mdk\examples\mbedos5\mbed-os-example-ble\BLE_SM" does not use source control management. To fix this you should use "mbed new ." in the root of your program. --- [mbed] Adding library "Adafruit_GFX" from "https://os.mbed.com/users/justinkim/code/Adafruit_GFX" at latest revision in the current branch [mbed] ERROR: Unable to clone repository (https://os.mbed.com/users/justinkim/code/Adafruit_GFX/) ---
I am able to load the mbed os from github.
Any ideas are appreciated.
Mark
1 Answer
5 years, 9 months ago.
Mark,
make sure you have both mercurial (hg) and git installed on your machine. The repo's hosted on github use git, the repos hosted on os.mbed.com/* use mercurial by default.
Hi Mark,
I have the same error:
Problem Mbed Cli import
mbed import https://os.mbed.com/teams/mbed-os-examples/code/mbedos-example-blinky [mbed] Working path "C:\Users\Victor.Najarro\Desktop\mbed cli" (directory) [mbed] Program path "C:\Users\Victor.Najarro\Desktop\mbed cli" [mbed] Importing program "mbedos-example-blinky" from "https://os.mbed.com/teams/mbed-os-examples/code/mbedos-'example-blinky" at latest revision in the current branch [mbed] ERROR: Unable to clone repository (https://os.mbed.com/teams/mbed-os-examples/code/mbedos-example-blinky) ---
I have installed git and mercurial but it has not solved the problem. Is there any other alternative or cause of this problem?
posted by 24 Sep 2019