Bug 2139883
| Summary: | "git bisect run" strips "--log" from the list of arguments | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lukáš Doktor <ldoktor> |
| Component: | git | Assignee: | Todd Zullinger <tmz> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | besser82, chrisw, johannes, opohorel, pstodulk, sebastian.kisela, tmz |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | git-2.39.1-1.fc36 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-02-03 17:27:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Lukáš Doktor
2022-11-03 17:13:06 UTC
I tested: git-2.35.1-1.fc36.x86_64 - bad git-2.34.1-1.fc35.x86_64 - bad git-2.33.0-1.fc36.x86_64 - good git-2.32.0-1.fc36.2.x86_64 - good git-2.31.1-3.fc35.1.x86_64 - good Thanks Lukáš. I would guess this is related to the conversion of git bisect run from shell to C which was released in 2.34.0. In particular, d1bbbe45df (bisect--helper: reimplement `bisect_run` shell function in C, 2021-09-13) stands out as a possible suspect.
I'm not sure if this would be considered a bug or not by upstream. If you're able, I would suggest asking git.org (no subscription required). If it's not expected behavior, someone who knows the area well might provide a patch.
I think you may be able to avoid this by using sh -c 'command' to call the run command:
git bisect run sh -c './myscript arg1 --log arg2 --log -- arg3 --log arg4'
Thanks for posting that to the git list. I'm glad to see it's led to a lively discussion and several different patch series to fix things. The folks on the git list are fantastic! :) I'll keep any eye on that thread and see what gets merged. Then we can see whether we should apply it to 2.38.x or wait a bit for 2.39.0. This was fixed in git-2.39.0, which was pushed to Fedora 36 a few weeks ago. |