push to repository in local file system with relative path
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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