nodegit / nodegit/nodegit

push to repository in local file system with relative path

Open
#622 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.8k
Forks
704
PR merge metrics
No merged PRs in 30d

Description

I tried a modified examples/push.js with a repository in the local file system. The repository exists, as well as the local remote, and the remote is already configured to origin:

[remote "origin"]
    url = ../bare/
    fetch = +refs/heads/*:refs/remotes/origin/*

... and of course, I can push an pull etc. to my local bare repository using bash.

But trying the push.js-example, I get the error

[Error: Unsupported URL protocol]

I tried both, connect and push methods on the remoteResult-object repository.getRemote("origin")

Not sure if this is bug because the command line git operations work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with examples/push.js and the repository.getRemote("origin") connect and push calls, using the reported remote configuration with url ../bare/. Reproduce the Unsupported URL protocol error and compare the behavior with the working command-line push; done means the local relative-path remote can be pushed through the example without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript, node.js
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.