Nodegit: Perform an ls-remote without cloning the repo

Created on 16 Sep 2015  路  6Comments  路  Source: nodegit/nodegit

How can I run a git ls-remote if I just have a URL?

Is there a sort of NodeGit.Remote.list(url) cmd?

Most helpful comment

https://github.com/libgit2/libgit2/issues/2923

The main issue is we can't create a repo w/o cloning. We should be able to init a dummy one, set remote and then list.

All 6 comments

https://github.com/libgit2/libgit2/issues/2923

The main issue is we can't create a repo w/o cloning. We should be able to init a dummy one, set remote and then list.

Please do not +1 issues. GitHub now let's you +1 a comment.

image

looks like its possible now https://github.com/libgit2/libgit2/pull/4233

Can this be done in NodeGit now?

Can this be done in NodeGit now?

Is it possible now? ;-)

I believe you can run NodeGit.Remote.createDetached(url: string), and then you can call NodeGit.Remote.prototype.referenceList (exposes git_remote_ls) on the detached remote in nodegit today.

Was this page helpful?
0 / 5 - 0 ratings