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

Đang mở
#54 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@nolte đang làm issue này rồi.

Từ ngày 5/11/2026.

  • #58 của @nolte — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, shell
Lĩnh vực
cli, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
0
Fork
0
Merge trung bình
11 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nolte/taskfiles

Tất cả issue của nolte/taskfiles

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.