keunhong / photoshape

111 stars 15 forks source link

Unable to clone brender #2

Closed hjwdzh closed 5 years ago

hjwdzh commented 5 years ago

$ git clone --recurse-submodules https://github.com/keunhong/photoshape Cloning into 'photoshape'... remote: Enumerating objects: 427, done. remote: Counting objects: 100% (427/427), done. remote: Compressing objects: 100% (353/353), done. remote: Total 427 (delta 84), reused 399 (delta 60), pack-reused 0 Receiving objects: 100% (427/427), 54.72 MiB | 3.90 MiB/s, done. Resolving deltas: 100% (84/84), done. Checking connectivity... done. Submodule 'thirdparty/brender' (git@github.com:keunhong/brender.git) registered for path 'thirdparty/brender' Submodule 'thirdparty/kitnn' (git@github.com:keunhong/kitnn.git) registered for path 'thirdparty/kitnn' Submodule 'thirdparty/rendkit' (git@github.com:keunhong/rendkit.git) registered for path 'thirdparty/rendkit' Submodule 'thirdparty/siftflow' (git@github.com:keunhong/siftflow.git) registered for path 'thirdparty/siftflow' Submodule 'thirdparty/toolbox' (git@github.com:keunhong/toolbox.git) registered for path 'thirdparty/toolbox' Submodule 'thirdparty/vispy' (git@github.com:keunhong/vispy.git) registered for path 'thirdparty/vispy' Cloning into 'thirdparty/brender'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@github.com:keunhong/brender.git' into submodule path 'thirdparty/brender' failed

keunhong commented 5 years ago

I think you can fix this one of two ways:

  1. Register your SSH public key with GitHub.
  2. Replace all the SSH submodule URLs with HTTPS URLs. You can replace the contents of .gitmodules with this:
[submodule "thirdparty/rendkit"]
        path = thirdparty/rendkit
        url = https://github.com/keunhong/rendkit.git
[submodule "thirdparty/kitnn"]
        path = thirdparty/kitnn
        url = https://github.com/keunhong/kitnn.git
[submodule "thirdparty/toolbox"]
        path = thirdparty/toolbox
        url = https://github.com/keunhong/toolbox.git
[submodule "thirdparty/vispy"]
        path = thirdparty/vispy
        url = https://github.com/keunhong/vispy.git
[submodule "thirdparty/siftflow"]
        path = thirdparty/siftflow
        url = https://github.com/keunhong/siftflow.git
[submodule "thirdparty/brender"]
        path = thirdparty/brender
        url = https://github.com/keunhong/brender.git
hjwdzh commented 5 years ago

Thanks. It works.