Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{ [Error: This transport isn't implemented. Sorry] code: 11 } #62

Open
kuno opened this issue Aug 12, 2013 · 4 comments
Open

{ [Error: This transport isn't implemented. Sorry] code: 11 } #62

kuno opened this issue Aug 12, 2013 · 4 comments

Comments

@kuno
Copy link

kuno commented Aug 12, 2013

I made a slight modification to the examples/show_remote.js,

var gitteh = require("../lib/gitteh");
var path = require("path");

gitteh.openRepository(path.join(__dirname, ".."), function(err, repo) {
    exports.repo = repo;

    repo.remote("origin", function(err, remote) {
        exports.remote = remote;

        remote.connect("fetch", function(err) {
            if(err) return console.error(err);
            console.log(remote);
            console.log(remote.connected);
            console.log(remote.refs);
        });
    });
});

When I running it , I got this error:

{ [Error: This transport isn't implemented. Sorry] code: 11 }
@kuno
Copy link
Author

kuno commented Aug 12, 2013

It seems this is an error occurs at the c++ level?

@mildsunrise
Copy link
Contributor

Can you do a git remote -v show so we can see
which URL is it trying to fetch? Maybe it's an FTP
one which LibGit2 doesn't support(?) right now.

@kuno
Copy link
Author

kuno commented Aug 13, 2013

It was strange, I try again, this time I got another error:


/Users/kuno/Hub/_/node-gitteh/lib/gitteh.js:418
    fetchSpec = new Refspec(nativeRemote.fetchSpec.src, nativeRemote.fetchSpec
                                                  ^
TypeError: Cannot read property 'src' of undefined
    at new Gitteh.Remote (/Users/kuno/Hub/_/node-gitteh/lib/gitteh.js:418:51)
    at Repository.remote (/Users/kuno/Hub/_/node-gitteh/lib/gitteh.js:855:23)
    at wrapCallback (/Users/kuno/Hub/_/node-gitteh/lib/gitteh.js:76:17)

And this is the result of git remtoe -v show, nothing interesting though, I believed.

origin  [email protected]:libgit2/node-gitteh.git (fetch)
origin  [email protected]:libgit2/node-gitteh.git (push)

@kuno
Copy link
Author

kuno commented Aug 13, 2013

BTW, I have found any documents teaching me how to add new file/commit/fetch/push/pull by using gitteh.

If you know how, can you show me some example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants