aboutsummaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index b395ffeb0..09e3a60bf 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -182,9 +182,9 @@ static struct commit_list *find_bisection(struct commit_list *list,
nr++;
p = p->next;
}
- *all = nr;
- closest = 0;
+ closest = -1;
best = list;
+ *all = nr;
for (p = list; p; p = p->next) {
int distance, reach;