Rugged::Repository#clone_at :upstream option has no effect
还没有人认领这个 Issue。
评估
调研方向
从 Rugged::Repository.clone_at 开始,跟踪其 :remote 选项的处理方式,并以 issue 中的复现作为基准。将 git -C fork remote -v 得到的 remote 名称与 git clone --origin upstream 进行比较;当请求的 remote 名称得到遵循,而不是始终生成 origin 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
According to docs
:remote
The name to give to the “origin” remote. Defaults to "origin".
But doesn't produce any results. I've tested this with rugged 1.4.4, 1.5.3, 1.6.3 and 1.7.1:
require 'rugged'
Rugged::Repository.clone_at('../repo', 'fork', remote: 'upstream')
git -C fork remote -v
origin ../repo (fetch)
origin ../repo (push)
Shouldn't "origin" be named "upstream"? I would expect it to work like git clone --origin upstream ../repo fork
- 主要语言
- C
- 星标
- 2.3k
- 派生
- 293
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
libgit2/rugged 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 48/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
bradcypert/plum#53 ·
-
Component: GLib
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
Status: Opened
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
nextbsd/nextbsd-userland#285 ·