Building ArduSub from source: git protocol on port 9418 not supported

Hi, I’m following the instructions to build ArduSub-stable and ran into this error:

...
$ git checkout ArduSub-stable -b new-branch
$ git submodule update --init --recursive
Submodule 'modules/libcanard' (git://github.com/ArduPilot/libcanard.git) registered for path 'modules/libcanard'
Cloning into '/home/clyde/projects/bluerov2_ignition/ardupilot/modules/libcanard'...
fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
...

The workaround is to checkout master, which I expect will work well enough for my tests.

Thanks,
/Clyde

1 Like

Hi @clyde,

Thanks for raising this. GitHub made some protocol permission changes, and ArduSub-stable hasn’t yet had the relevant updates to fix that. I’ve raised an issue for it, but if you want/need to use it in the meantime (before it gets fixed properly) you can

  1. clone the repo
  2. checkout ArduSub-stable into a new branch
  3. open the .gitmodules file and replace git:// with https://
  4. update submodules (but not recursively)
  5. open modules/mavlink/.gitmodules and replace git:// with https://
  6. update submodules again, recursively this time