{"thread":{"id":"56831","subject":"git bisect bugs","startedAt":"2021-11-02T14:16:04Z","lastAt":"2021-11-02T14:16:04Z","messageCount":1,"participants":["Alexey Kuznetsov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"440310","messageId":"163b01f2-ddc0-c551-5462-e8f80fb7cc48@gmail.com","threadId":"56831","inReplyTo":null,"subject":"git bisect bugs","fromName":"Alexey Kuznetsov","fromEmail":"kuznetsov.alexey@gmail.com","sentAt":"2021-11-02T14:15:58Z","receivedAt":"2021-11-02T14:16:04Z","isPatch":false,"sender":{"key":"kuznetsov.alexey@gmail.com","avatar":null},"body":"Two 'git bisect' bugs.\n\n1) First git-bisect asks twice for the same commit\n219d54332a09e8d8741c1e1982f5eae56099de85.\n\n\naxet@axet-laptop:/media/axet/1TB/local/linux$ git bisect log\ngit bisect start\n# good: [219d54332a09e8d8741c1e1982f5eae56099de85] Linux 5.4\ngit bisect good 219d54332a09e8d8741c1e1982f5eae56099de85\n# bad: [841fca5a32cccd7d0123c0271f4350161ada5507] Linux 5.10.1\ngit bisect bad f12366d9f172c4fc84cd114801b87588cb663074\n# good: [219d54332a09e8d8741c1e1982f5eae56099de85] Linux 5.4\ngit bisect good 219d54332a09e8d8741c1e1982f5eae56099de85\n# good: [bce159d734091fe31340976081577333f52a85e4] Merge tag\n'for-5.8/drivers-2020-06-01' of git://git.kernel.dk/linux-block\n<http://git.kernel.dk/linux-block>\ngit bisect good bce159d734091fe31340976081577333f52a85e4\n# bad: [fbc1ac9d09d70859eee24131d667e01e3986e368] tools/cgroup: add\nmemcg_slabinfo.py tool\ngit bisect bad fbc1ac9d09d70859eee24131d667e01e3986e368\naxet@axet-laptop:/media/axet/1TB/local/linux$\n\n\nI expect git bisect did not ask twice for the same commit.\n\n2) Second:\n\nIf you start 'git bisect' on \"good refs/tags/v5.4.19\" and \"bad\nrefs/tags/v5.10.1\" it will failed on second step (bad) with following:\n\nBisecting: a merge base must be tested\n\nthen on third step with 'git bisect good' it will result:\n\n\"was both good and bad\"\n\n\nI expected 'git bisect' will handle all \"connection\" issues between two\nkernel tags, but it failed.\n\n\nadmin@m3n:~/local/linux$ git bisect bad refs/tags/v5.10.1\nBisecting: a merge base must be tested\n[219d54332a09e8d8741c1e1982f5eae56099de85] Linux 5.4\nadmin@m3n:~/local/linux$ git bisect good\nf12366d9f172c4fc84cd114801b87588cb663074 was both good and bad\n\n\nbisect log:\n\n\ngit bisect start\n# good: [d6591ea2dd1a44b1c72c5a3e3b6555d7585acdae] Linux 5.4.19\ngit bisect good 1670517c4dcbe1143fd86d8a9eae272d0c514415\n# bad: [841fca5a32cccd7d0123c0271f4350161ada5507] Linux 5.10.1\ngit bisect bad f12366d9f172c4fc84cd114801b87588cb663074\n# good: [219d54332a09e8d8741c1e1982f5eae56099de85] Linux 5.4\ngit bisect good 219d54332a09e8d8741c1e1982f5eae56099de85\n\n\n[System Info]\ngit version:\ngit version 2.30.2\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64\ncompiler info: gnuc: 10.2\nlibc info: glibc: 2.31\n$SHELL (typically, interactive shell): /bin/bash\n\n\n[Enabled Hooks]\n\n-- AK\n"}]}