我正在像这样运行 bisect (尝试用 , 代替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,混帐 2.7.4
更新:
将我的 bisect start 更改为 bisect start BAD GOOD似乎工作正常,但我不明白为什么