node-gitteh icon indicating copy to clipboard operation
node-gitteh copied to clipboard

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

Open kuno opened this issue 12 years ago • 4 comments
trafficstars

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 avatar Aug 12 '13 05:08 kuno

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

kuno avatar Aug 12 '13 06:08 kuno

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.

mildsunrise avatar Aug 12 '13 09:08 mildsunrise

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 avatar Aug 13 '13 02:08 kuno

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?

kuno avatar Aug 13 '13 03:08 kuno