worktree:add: quote CLI args and derive repo name from the fetch remote
Đá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
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:
- 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. <repo>comes fromgit remote get-url origin, the fetch fromWORKTREE_FETCH_REMOTE— in a repo whose only remote isupstream(withWORKTREE_FETCH_REMOTE=upstream),addaborts underset -ewithNo such remote 'origin'before fetching; with both remotes the worktree is named afteroriginwhile branching fromupstream.
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nolte/taskfiles
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
-
worktree: harden the add prefix check and widen the self-testCó thể đã có người làm @nolte đã nhận 11 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Tất cả issue của nolte/taskfiles
Issue tương tự
-
Needs-Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
PowerShell/PowerShell#28432 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nolte/kamerplanter-appliance#32 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Automat etapu B+C rozstrzyga „w przebiegu” po nazwie katalogu z issue karty, nie po KATALOGIĐang mởresearch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
slayerlabs/benchmarks-fabryka-ai#256 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100