Submodule Update


#1

Good Morning:

I was trying to execute the below command from the course:

~$ git submodule update --init --recursive

but it failed. Here are the error messages:

fatal: unable to connect to github.com: github.com[0:140.82.114.3] errno=_connection time out

fatal: clone of ‘git://github.com/Ardupilot/PX4Firmware.git’ into submodule path ‘modules/PX4Firmware’ failed.

How do I correct the errors?

Thank you.
Nghia Le


#2

Hi there Ngiah Le!

When you initially cloned the Ardupilot repo, did your URL use https://github.com/…? I believe it is important to use the https:// part here, so if you haven’t I would suggested re-cloning the repo with the added https:// part then seeing if the submodule update works.

Thanks!


#3

Found a solution: (Fix: "git submodule update --init --recursive" ERROR: fatal: "unable to connect to github.com")

Fix
git config --global url.“https://”.insteadOf git://
git submodule update --init --recursive