我正在像这样运行二等分(尝试将subprocess
替换为很好的方法。结果相同...):
os.chdir(repo_head)
os.system('git bisect start')
os.system('git bisect bad XXX')
os.system('git bisect good YYY')
并获得
No testable commit found.
Maybe you started with bad path parameters?
1024
在最后一条命令上。如果我交换好与坏,则会在最后一条命令上再次出现错误。如果忽略,我可以运行测试,但是不正确的时间,我将输入一个好/不好的命令,我再次收到此错误...
直接从bash运行不会产生任何错误:
:~/Work (develop)$ git bisect start
Already on 'develop'
Your branch is up-to-date with 'origin/develop'.
:~/Work (develop)$ git bisect good 9b7c546
:~/Work (develop)$ git bisect bad 63311c8
Bisecting: 1 revision left to test after this (roughly 1 step)
[7b7e58f8d13d48e937b84fc7898aa0fadd5fdead] Merged in ZZZ
Python 3.5.2,git 2.7.4
更新:
将我的等分开始更改为等分开始坏 好似乎很好,但我不明白为什么