Adding LFS tracked files to index
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 408
- 平均マージ
- 2日 57分
- マージ済み PR(30日)
- 7
説明
I'm writing a script to take snapshots from SVN URLs and add them to Git in a subfolder. Bringing LFS into the fold it seems like calling Repository.index.add_all isn't working quite right. The files that should be tracked seem to get put in to .git/lfs/objects as expected, but git lfs ls-files doesn't list any files. I changed this line of my code
repo.index.add_all([projectPath])
to this
check_call(["/usr/bin/git","add","--all",projectPath])
repo.index.read()
And that's fixed it, but I'd prefer to have the code self contained with library calls.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、repo.index.add_all([projectPath]) を使ってスナップショットのフローを再現し、続いて repo.index.read() を実行する、示されている git add --all コマンドの場合と比較します。git lfs ls-files で結果のインデックスを確認します。ライブラリのみのパスで LFS 追跡対象のファイルが同等に記録されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, python
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100