libgit2 / libgit2/pygit2

Connect to a git server in port other than 22

オープン
#926 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
1.7k
フォーク
408
平均マージ
2日 57分
マージ済み PR(30日)
7

説明

In git, there are two ways to connect/clone a remote repository:

git clone git@git-in-port-22.com:libgit2/pygit2.git
git clone ssh://git@git-in-another-port.com:2345/libgit2/pygit2.git

and the 2nd one support to connect to a remote git server which is not in port 22.

In pygit2 doc, the connection is through

pygit2.clone_repository("ssh://git@github.com/libgit2/pygit2", "pygit2.git",
                        callbacks=callbacks)

After confirmed git clone ssh://git@localhost:8822/home/git/server.git can succeed, I tried

pygit2.clone_repository("ssh://git@localhost:8822/home/git/", "server.git")

but

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pygit2/__init__.py", line 263, in clone_repository
    check_error(err)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pygit2/errors.py", line 64, in check_error
    raise GitError(message)
_pygit2.GitError: unsupported URL protocol

I wonder if there's a way to specify a customized port?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

pygit2.clone_repository のエントリポイントから開始し、報告された ssh://localhost:8822 のクローンコマンドを再現します。URL がどのように解析され、SSH トランスポートに渡されるかを追跡し、22 番以外のポートからのクローンが、サポートされていない URL プロトコルのエラーなしに成功することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
git, python
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。