]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-rev-list.c
Merge branch 'master' into jc/bisect
[thirdparty/git.git] / builtin-rev-list.c
index b395ffeb03340af98f7f2c6447c850f7529d1cfb..09e3a60bf6492a280baf4e09eaa29ede67c7c245 100644 (file)
@@ -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;