Git checks: skip every global option before the subcommand, not just one `-C`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- git, python
- 領域
- security, testing-qa, tooling
調査の方向性
Start in tests/test_redteam.py and find the existing Git-check guard covered for add, commit, and push. Locate the implementation that parses the subcommand and working directory, then update it to skip Git global options and resolve repeated -C and --work-tree correctly. Add the blocked and allowed regression cases named in the issue, using fake paths only, and run that test file.
索引モデルが issue の本文から書いたものです。
説明
The Git checks on add, commit and push only run when the subcommand comes straight after git (or, once #19 is merged, after one -C <dir>). Any other global option before the subcommand skips them:
git -c core.autocrlf=false add -Agit -C a -C b add -A(git applies each-Cin turn)git --no-pager -C dir add -Agit --git-dir=dir/.git --work-tree=dir add -A
Done when
- The guard walks past git's global options and finds the subcommand and the folder git will act on:
- repeated
-Cresolve relative to each other --work-treesets the folder-c,--no-pagerand similar are skipped
- repeated
- Regression tests in
tests/test_redteam.pycover a blocked and an allowed case for each, with fake values only.
Found while reviewing #19.
Generated by Claude Code
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 2時間 28分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JTHCode/secretguard のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
JTHCode/secretguard#17 ·
メンテナーはふだん 1 日以内に返信
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
JTHCode/secretguard#15 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JTHCode/secretguard#16 ·
メンテナーはふだん 1 日以内に返信
-
Add plugin manifest and hook configuration consistency tests対応中かも @nyx60002 が今日担当しました。 オープンenhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JTHCode/secretguard#4 ·
メンテナーはふだん 1 日以内に返信
JTHCode/secretguard の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
521xueweihan/HelloGitHub#4729 ·