worktree:add: quote CLI args and derive repo name from the fetch remote

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

@nolte がすでに取り組んでいます。

2026年11月5日 から。

  • #58 @nolte による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, shell
領域
cli, tooling

調査の方向性

Start by reading src/taskfile-include-worktree.yaml and the module conventions in CLAUDE.md. Inspect the add task’s handling of CLI_ARGS, WORKTREE_FETCH_REMOTE, and the remote used to derive the repository name; run the relevant worktree task with glob characters and with only an upstream remote. Done means the typed branch or slug is preserved and the worktree uses the configured fetch remote.

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

説明

Pre-existing issues in src/taskfile-include-worktree.yaml (add), surfaced while reviewing #52 but outside its diff:

  1. Unquoted set -- {{.CLI_ARGS}} — glob characters in the branch or slug (e.g. task worktree:add -- 'feat/*') are expanded against the current directory, so the branch/slug silently differs from what was typed, or a misleading prefix/slug error appears.
  2. <repo> comes from git remote get-url origin, the fetch from WORKTREE_FETCH_REMOTE — in a repo whose only remote is upstream (with WORKTREE_FETCH_REMOTE=upstream), add aborts under set -e with No such remote 'origin' before fetching; with both remotes the worktree is named after origin while branching from upstream.

Note: WORKTREE_FETCH_REMOTE is currently a plain literal, so consumer overrides are ignored anyway (see CLAUDE.md module conventions); fix 2 matters once the module is converted to the default form.

主要言語
Shell
スター
0
フォーク
0
平均マージ
11分
マージ済み PR(30日)
2

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

nolte/taskfiles のほかの issue

nolte/taskfiles の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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