"authentication required but no callback set" on clone with SSH url
qrush opened this issue · 4 comments
qrush commented
Hey, maybe I'm doing something wrong here, but it doesn't seem like Repository::clone
or RepoBuilder
likes SSH urls, for example: git@github.com:qrush/m.git
.
Maybe I'm missing something on linking/building? It seems like git2-rs includes libssl, etc.
qrush commented
PEBKAC
alexcrichton commented
I take it you ended up running across RemoteCallbacks
?
For posterity's sake that combined with RepoBuilder
should do the trick!
qrush commented
Yeah, I had to pass in a credentials
callback, which i'm still trying to figure out. Stumbling around.
alexcrichton commented
You may want to take a look at cargo's credential callback or crates.io's credential callback for some inspiration.