I have the following problem:
- the version at
master
works fine - the version of the last tag before
master
(saylast
) has a bug - a colleague needs a patch for his
last
revision for that certain bug
Okay. Let's ask our friend git bisect
for the revision that fixed the bug:
git bisect start
git bisect bad last
git bisect good master
But that's not going to work:
Some good revs are not ancestor of the bad rev.
git bisect cannot work properly in this case.
Maybe you mistake good and bad revs?
Any hints to overcome this? Did I miss something in the docs?
git bisect run ...
to automate bisecting. So I have no chance just to swap the wordsgood
andbad
(that was too obvious). How to userun
to find the first good revision? – Friedergit bisect run
returns good or bad as exit code, not as a string. See my answer I just posted below. – Frieder