libgit2 / libgit2/libgit2sharp
Cloning pathing
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
After cloning a path like so:
DirectoryInfo dir = new DirectoryInfo("C:/APath/SomeOtherPath/");
Repository.Clone(dir.FullName, "Some other path");
The dir.FullName returns "C:\APath\SomeOtherPath" instead of forward slashes. The clone code runs correctly, but then trying to push from the clone back to the remote repo (using Git Extensions) gives a locational error saying it cannot locate the repository.
By making the modification to
Repository.Clone(dir.FullName.Replace('','/'), "Some other path");
it was able to find the repo when pushing.
It would be a nice feature to have the slashes standardized to forward slash -INSIDE- the Clone function, or at least throw an error saying it's not going to link properly, etc.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue に記載されている Repository.Clone のエントリポイントから始め、DirectoryInfo.FullName を使って Windows パスの例を再現します。呼び出し元がバックスラッシュを置き換えなくても、クローンしたリポジトリを後続の push に使用できることを確認します。このシナリオが動作するか、明確な検証エラーが生成されれば、Issue は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100