push to repository in local file system with relative path
未關閉
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 5.8k
- 分支
- 704
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 examples/push.js 以及 repository.getRemote("origin") 的 connect 和 push 呼叫開始,使用回報的、url 為 ../bare/ 的遠端設定。重現 Unsupported URL protocol 錯誤,並將其行為與正常運作的命令列 push 進行比較;當本機相對路徑遠端可以透過範例進行 push 且不出現該錯誤時,即完成任務。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- git, javascript, node.js
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100