summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0dd385c)
raw | patch | inline | side by side (parent: 0dd385c)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 4 Aug 2005 08:17:05 +0000 (01:17 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 4 Aug 2005 09:46:46 +0000 (02:46 -0700) |
When I munged the original from Linus, which did not terminate
when the last bisect to check happened to be a bad one, to
terminate, I seem to have botched the end result to pick.
Thanks for Sanjoy Mahajan for a good reproduction recipe to
diagnose this.
Signed-off-by: Junio C Hamano <junkio@cox.net>
when the last bisect to check happened to be a bad one, to
terminate, I seem to have botched the end result to pick.
Thanks for Sanjoy Mahajan for a good reproduction recipe to
diagnose this.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-bisect-script | patch | blob | history |
diff --git a/git-bisect-script b/git-bisect-script
index 2233b4143b2471c6dbb30d4910ba8bdf7455ec7c..29b25f4a4ce67a9d2532c617b93a9e5297cc4249 100755 (executable)
--- a/git-bisect-script
+++ b/git-bisect-script
rev=$(eval "git-rev-list --bisect $good $bad") || exit
nr=$(eval "git-rev-list $rev $good" | wc -l) || exit
if [ "$nr" -le "1" ]; then
- echo "$bad is first bad commit"
- git-diff-tree --pretty $bad
+ echo "$rev is first bad commit"
+ git-diff-tree --pretty $rev
exit 0
fi
echo "Bisecting: $nr revisions left to test after this"