git-ssb icon indicating copy to clipboard operation
git-ssb copied to clipboard

Can't clone using ssb

Open cazala opened this issue 8 years ago • 4 comments

Hi @clehner !

I've setup a pub in a DO droplet: http://ssb.caza.la and I can't clone any repo on my local machine using ssb:

git clone ssb://%ALMgAp5VaIx3WFaBTkgzKlPss7CG+2X+M4h5syyIEDg=.sha256 test
Cloning into 'test'...
Repo not found with ID %ALMgAp5VaIx3WFaBTkgzKlPss7CG+2X+M4h5syyIEDg=.sha256

Everything works fine when cloning via http tho:

git clone http://ssb.caza.la/%25ALMgAp5VaIx3WFaBTkgzKlPss7CG%2B2X%2BM4h5syyIEDg%3D.sha256 test

I'm running the server using sbot server --host ssb.caza.la

Any ideas why?

Is this the right place to ask this or should I go to scuttlebot?

cazala avatar Jan 12 '18 16:01 cazala

It's possible that your local sbot's friend graph doesn't reach out far enough to find that message ID. Your pub, however, may have a greater / different reach. Can you look up the user who published the repo (@TOTA0XKC1/7twKSij6+96ts6gU0fnfYLBMoiCAWCVjY=.ed25519) on your local sbot?

hackergrrl avatar Jan 12 '18 18:01 hackergrrl

Okay I managed to make it work by doing sbot invite.create 1 on my server and then sbot invite.accept {code} on my local machine, after that cloning worked just fine. So if people want to clone my repos they will need me to give them an invite first? Is that the only way?

cazala avatar Jan 12 '18 19:01 cazala

Nice! That worked because you connected that user to your friend graph, which is friends and friends-of-friends. When you're friends with a big public pub (here's a list), your friend graph grows greatly, which increases how reachable your git repos are.

hackergrrl avatar Jan 12 '18 20:01 hackergrrl

I think cel is archiving his github repos, so you may want to use the Issues section on that repo. You can just run git-ssb-web locally (which comes with git-ssb) and visit that website and find the git-ssb repo there. Good luck!

hackergrrl avatar Jan 12 '18 20:01 hackergrrl