gitlibpd

Git - submodule fatal clone (libpd)


I am trying to install the Pure Data for Android library using git, but I keep getting the same error.

I create a new directory in which I clone the repository, and run cd pd-for-android to move to the repository folder.
After I run git submodule update --init --recursive, I get the following:

fatal: clone of 'git://github.com/libpd/libpd.git' into submodule path 
/Users/myUserName/Desktop/pd-android-test/pd-for-android/PdCore/jni/libpd' failed.

Any ideas on what I might be doing wrong?


Solution

  • The repo libpd/pd-for-android (Pure Data for Android library) has a .gitmodules which uses the git URL git://github.com/libpd/libpd.git

    If, as in this issue, this is related to the git protocol, try first:

    cd /path/to/my/repo
    git config url."https://".insteadOf git://
    git submodule update --init --recursive
    

    Or try a more global rule (limited to that repo), with a git clone --recursive (that will clone the main repo and the submodules immediately, saving you one step)

    git config --global url."https://github.com/libpd/".insteadOf git://github.com/libpd/
    

    That way, you do not deactivate the use of git:// for all repos.