Failed to apply patch with scissors
Chưa có ai nhận issue này.
Đá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
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi với git-pw patch apply 120008 và so sánh git-pw patch download --mbox với các đầu vào --diff đang hoạt động và các đầu vào do Thunderbird tạo ra. Kiểm tra cách git-pw xây dựng mbox quanh dòng From patchwork và kiểm thử kết quả bằng git am, bao gồm cả một patch chứa scissors; hoàn thành khi patch được báo cáo có thể được áp dụng mà không cần xóa dòng đó theo cách thủ công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I ran into the following problem while trying to apply this patch:
$ git-pw patch apply 120008
Failed to apply patch:
Applying: New '--binary-output' command line option, fix gdb.mi/ testing on Windows
error: No valid patches in input (allow with "--allow-empty")
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 New '--binary-output' command line option, fix gdb.mi/ testing on Windows
$ git am --show-current-patch=diff
--- 8< ---
$
The following things do work:
- get the patch by saving email using Thunderbird, and use
git amto apply it - get the patch using
git-pw patch download --diff, and usepatchto apply it
But this doesn't work (I suppose because it's the equivalent of git-pw patch apply):
- use
git-pw patch download --mboxand usegit amto apply it
After downloading the patch in the mbox format, I took a look.
On a hunch, I removed the first line:
From patchwork Wed Sep 10 20:46:42 2025
and got:
$ git am v2-New---binary-output-command-line-option-fix-gdb.mi-testing-on-Windows.patch
Applying: New '--binary-output' command line option, fix gdb.mi/ testing on Windows
$
What I understand from this is that the mbox format that patchwork generates is incompatible with git am if the patch contains scissors.
- Ngôn ngữ chính
- Python
- Star
- 39
- Fork
- 23
- Merge trung bình
- 48 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 getpatchwork/git-pw
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
getpatchwork/git-pw#76 ·
-
YAML output isn't useful Đang mởenhancement help wanted
getpatchwork/git-pw#70 · 8 bình luận · 1 người được giao ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
getpatchwork/git-pw#51 ·
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
getpatchwork/git-pw#50 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
getpatchwork/git-pw#45 · 3 bình luận · 1 reaction ·
Tất cả issue của getpatchwork/git-pw
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/skills#1811 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
speaches-ai/speaches#678 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
datalayer/mcp-compose#42 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
conda-forge/spacy-feedstock#177 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
UKGovernmentBEIS/inspect_evals#2523 ·